Documentation
¶
Overview ¶
Package certificate contains test certificates for use in public key cryptography. These can be used in both remote and local tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCert3AltSubjectMatch ¶
func TestCert3AltSubjectMatch() []string
TestCert3AltSubjectMatch provides the alternative subject name entries contained in TestCert3().ServerCred.Cert and TestCert3().ExpiredServerCred.Cert in encoded json format.
func TestCert3DomainSuffixMatch ¶
func TestCert3DomainSuffixMatch() []string
TestCert3DomainSuffixMatch provides the domain suffix entries contained in TestCert3().ServerCred.Cert and TestCert3().ExpiredServerCred.Cert.
Types ¶
type CertStore ¶
type CertStore struct { CACred Credential ServerCred Credential ClientCred Credential ExpiredServerCred Credential }
CertStore holds a set of credentials which share the same CA certificate.
func TestCert1 ¶
func TestCert1() CertStore
TestCert1 retrieves a well-known set of certificates, for use by tests that want to establish an authenticator and client (e.g., for network EAP tests). This certificate does not provide any real security or privacy guarantees, as the certificate and private key are well-known (i.e., published in public repositories). NOTE: The certs will expire in around Jul 3020 except the one in ExpiredServerCred.
type Credential ¶
Credential holds a pair of certificate and private key.