Documentation ¶
Index ¶
- Constants
- func DumpCertPEM(prefix string, status string, certPEM *bytes.Buffer, keyPEM *bytes.Buffer)
- type CA
- func (ca *CA) ClientCert() *ClientCert
- func (ca *CA) ExpiredClientCert() *ClientCert
- func (ca *CA) ExpiredServerCert() *ServerCert
- func (ca *CA) IntermediateCA(suffix string) *CA
- func (ca *CA) RevokedClientCert() *ClientCert
- func (ca *CA) RevokedServerCert() *ServerCert
- func (ca *CA) ServerCert() *ServerCert
- type ClientCert
- type ServerCert
Constants ¶
View Source
const ( STATUS_VALID string = "valid" STATUS_EXPIRED string = "expired" STATUS_REVOKED string = "revoked" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CA ¶
type CA struct { Cert *x509.Certificate Key *rsa.PrivateKey CertPEM *bytes.Buffer KeyPEM *bytes.Buffer // contains filtered or unexported fields }
func (*CA) ClientCert ¶
func (ca *CA) ClientCert() *ClientCert
func (*CA) ExpiredClientCert ¶
func (ca *CA) ExpiredClientCert() *ClientCert
func (*CA) ExpiredServerCert ¶
func (ca *CA) ExpiredServerCert() *ServerCert
func (*CA) IntermediateCA ¶
func (*CA) RevokedClientCert ¶
func (ca *CA) RevokedClientCert() *ClientCert
func (*CA) RevokedServerCert ¶
func (ca *CA) RevokedServerCert() *ServerCert
func (*CA) ServerCert ¶
func (ca *CA) ServerCert() *ServerCert
type ClientCert ¶
type ClientCert struct { Cert *x509.Certificate Key *rsa.PrivateKey CertPEM *bytes.Buffer KeyPEM *bytes.Buffer }
type ServerCert ¶
type ServerCert struct { Cert *x509.Certificate Key *rsa.PrivateKey CertPEM *bytes.Buffer KeyPEM *bytes.Buffer }
Click to show internal directories.
Click to hide internal directories.