certs

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 69

Documentation

Overview

Package certs is set of default certificates serialized in to string format.

Index

Constants

View Source
const (
	Client1Key = "client1.key"
	Client1Crt = "client1.crt"
)

Default Client Certificate name

View Source
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
View Source
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)

View Source
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
View Source
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)

View Source
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
View Source
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)

View Source
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

func GetCertPool(CaPath string) (*x509.CertPool, error)

GetCertPool loads the Certificate Authority from the given path

func GetCertPoolDefault

func GetCertPoolDefault() (*x509.CertPool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL