certs

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 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 = `` /* 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
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 = `` /* 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
View Source
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)

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