Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issuer ¶
type Issuer struct {
// contains filtered or unexported fields
}
Issuer represents the CA root with its key and certificate
func (*Issuer) CRT ¶
func (iss *Issuer) CRT() *x509.Certificate
CRT return the certificate of the CA root
type LeafCert ¶
LeafCert is a PEM encoded X509 certificate with its private key
func LeafCertificate ¶
func LeafCertificate(caRoot *x509.Certificate, caKey crypto.PrivateKey, hostnames []string, addressIP []net.IP) (*LeafCert, error)
LeafCertificate returns a leaf certificate for the given hostnames and IP addresses. The issuer is the CA ROOT given in parameter. The leaf certificate is signed by the CA key. The subject is set arbitrarily.
func LeafCertificateFromCSR ¶
func LeafCertificateFromCSR(caRoot *x509.Certificate, caKey crypto.PrivateKey, csr *x509.CertificateRequest) (*LeafCert, error)
LeafCertificateFromCSR returns a leaf certificate from the given CSR. The issuer is the CA ROOT given in parameter. The leaf certificate is signed by the CA key. The subject is given by the CSR.
Click to show internal directories.
Click to hide internal directories.