Documentation
¶
Overview ¶
Package certs is set of default certificates serialized in to string format.
Index ¶
- Constants
- func GetCertPool(CaPath string) (*x509.CertPool, error)
- func GetCertPoolDefault() (*x509.CertPool, error)
- func HandleCertArgs(keyPath *string, certPath *string) ([]grpc.DialOption, error)
- func HandleCertPaths(caPath string, keyPath string, certPath string, insecure bool) ([]grpc.DialOption, error)
Constants ¶
const ( Client1Key = "client1.key" Client1Crt = "client1.crt" )
Default Client Certificate name
const DefaultClientCrt = `` /* 1238-byte string literal not displayed */
DefaultClientCrt is the default client certificate
Data:
Version: 1 (0x0)
Serial Number:
e5:ec:d1:7a:7a:47:df:71
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: Apr 11 11:16:23 2019 GMT
Not After : Apr 10 11:16:23 2020 GMT
Subject: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = client1.opennetworking.org
const DefaultClientKey = `` /* 1705-byte string literal not displayed */
DefaultClientKey is the default client key openssl rsa -in client1.key -text -noout Private-Key: (2048 bit)
const DefaultLocalhostCrt = `` /* 1217-byte string literal not displayed */
DefaultLocalhostCrt is the default localhost server certificate Certificate:
Data:
Version: 1 (0x0)
Serial Number:
a7:0e:38:d6:1c:87:53:46
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: Apr 16 17:35:40 2019 GMT
Not After : Apr 15 17:35:40 2020 GMT
Subject: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = localhost
const DefaultLocalhostKey = `` /* 1705-byte string literal not displayed */
DefaultLocalhostKey is the default localhost server key openssl rsa -in client1.key -text -noout Private-Key: (2048 bit)
const DefaultOnosConfigCrt = `` /* 1234-byte string literal not displayed */
DefaultOnosConfigCrt is the default onos-config server certificate Certificate:
Data:
Version: 1 (0x0)
Serial Number:
56:56:04:5e:9b:45:15:87:d7:24:3d:2a:22:21:df:87:11:e0:f2:0b
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: Jul 16 18:38:15 2019 GMT
Not After : Jul 13 18:38:15 2029 GMT
Subject: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = onos-config
const DefaultOnosConfigKey = `` /* 1705-byte string literal not displayed */
DefaultOnosConfigKey is the default onos-config server key openssl rsa -in onso-config.key -text -noout Private-Key: (2048 bit)
const OnfCaCrt = `` /* 1234-byte string literal not displayed */
OnfCaCrt is the default CA certificate Certificate:
Data:
Version: 1 (0x0)
Serial Number:
de:f7:d7:d2:37:da:b1:49
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: Apr 11 09:06:13 2019 GMT
Not After : Apr 8 09:06:13 2029 GMT
Subject: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Variables ¶
This section is empty.
Functions ¶
func GetCertPool ¶
GetCertPool loads the Certificate Authority from the given path
func GetCertPoolDefault ¶
GetCertPoolDefault load the default ONF Cert Authority
func HandleCertArgs ¶
func HandleCertArgs(keyPath *string, certPath *string) ([]grpc.DialOption, error)
HandleCertArgs is a common function for clients like admin/net-changes for handling certificate args if given, or else loading defaults Deprecated: This should not take pointer to string - also ignores the caPath - use HandleCertArgsCa below
func HandleCertPaths ¶
func HandleCertPaths(caPath string, keyPath string, certPath string, insecure bool) ([]grpc.DialOption, error)
HandleCertPaths is a common function for clients and servers like admin/net-changes for handling certificate args if given, or else loading defaults
Types ¶
This section is empty.