Documentation
¶
Overview ¶
Package certs is set of default certificates serialized in to string format.
Index ¶
Constants ¶
const ( Client1Key = "client1.key" Client1Crt = "client1.crt" )
Default Client Certificate name
const DefaultClientCrt = `` /* 1254-byte string literal not displayed */
DefaultClientCrt is the default client certificate
Data:
Version: 1 (0x0)
Serial Number:
4a:c1:1b:3b:17:1e:8d:65:f1:b9:99:46:60:e4:17:e8:76:6e:c7:53
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: May 5 07:42:13 2020 GMT
Not After : May 3 07:42:13 2030 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 = `` /* 1230-byte string literal not displayed */
DefaultLocalhostCrt is the default localhost server certificate Certificate:
Data:
Version: 1 (0x0)
Serial Number:
4a:c1:1b:3b:17:1e:8d:65:f1:b9:99:46:60:e4:17:e8:76:6e:c7:54
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = ca.opennetworking.org
Validity
Not Before: May 5 07:43:55 2020 GMT
Not After : May 3 07:43:55 2030 GMT
Subject: C = US, ST = CA, L = MenloPark, O = ONF, OU = Engineering, CN = localhost
const DefaultLocalhostKey = `` /* 1701-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 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.