Documentation ¶
Overview ¶
Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.
Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.
Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.
Package ca implements a disk file-backed certificate authority with a built-in CRL signer. The certificate authority can issue new certificates (including the creation of intermediate CAs) and revoke existing certificates, resulting in a fresh CRL.
Index ¶
- func ComputeSubjectKeyId(key *rsa.PublicKey) []byte
- type CA
- func (ca *CA) CreateIntermediate(dir string, template *x509.Certificate, key *rsa.PrivateKey) (*CA, error)
- func (ca *CA) GetCRL() *x509.RevocationList
- func (ca *CA) GetCRLSigner() *x509.Certificate
- func (ca *CA) GetRoot() *x509.Certificate
- func (ca *CA) Revoke(serial *big.Int) (*x509.RevocationList, error)
- func (ca *CA) Sign(template *x509.Certificate, key *rsa.PublicKey) (*x509.Certificate, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSubjectKeyId ¶
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(dir string, template *x509.Certificate, key *rsa.PrivateKey) (*CA, error)
func (*CA) CreateIntermediate ¶
func (ca *CA) CreateIntermediate(dir string, template *x509.Certificate, key *rsa.PrivateKey) (*CA, error)
func (*CA) GetCRL ¶
func (ca *CA) GetCRL() *x509.RevocationList
func (*CA) GetCRLSigner ¶
func (ca *CA) GetCRLSigner() *x509.Certificate
func (*CA) GetRoot ¶
func (ca *CA) GetRoot() *x509.Certificate