Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertificate ¶
func LoadCertificate(certPEM []byte) (*x509.Certificate, error)
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
Authority represents a Certificate Authority
func LoadFromPEM ¶
LoadFromPEM loads an existing CA from PEM-encoded certificate and key
func (*Authority) Fingerprint ¶
func (*Authority) GetCACertificate ¶
GetCACertificate returns the CA certificate in PEM format
func (*Authority) IssueCertificate ¶
func (ca *Authority) IssueCertificate(opts Options) (*ClientCertificate, error)
IssueCertificate creates a new certificate signed by the CA
func (*Authority) VerifyCertificate ¶
VerifyCertificate verifies if a certificate was signed by this CA
type ClientCertificate ¶
func (*ClientCertificate) MarshalText ¶
func (c *ClientCertificate) MarshalText() ([]byte, error)
func (*ClientCertificate) UnmarshalText ¶
func (cert *ClientCertificate) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.