Documentation ¶
Overview ¶
Package initca contains code to initialise a certificate authority, generating a new root key and certificate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CAPolicy = &config.Signing{ Default: &config.SigningProfile{ Usage: []string{"cert sign", "crl sign"}, ExpiryString: "43800h", Expiry: 5 * helpers.OneYear, CA: true, }, }
CAPolicy contains the CA issuing policy as default policy.
Functions ¶
func New ¶
func New(req *csr.CertificateRequest) (cert, csrPEM, key []byte, err error)
New creates a new root certificate from the certificate request.
func NewFromPEM ¶
func NewFromPEM(req *csr.CertificateRequest, keyFile string) (cert, csrPEM []byte, err error)
NewFromPEM creates a new root certificate from the key file passed in.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.