Documentation ¶
Index ¶
- func GenerateCSR(org string, pkcs8 bool) ([]byte, []byte, error)
- func GenerateCSRCertificate(csr *x509.CertificateRequest, subject string, identityBundle *identity.Bundle, ...) ([]byte, error)
- func GenerateIssuerCertCSR(cn string, publicKey interface{}, ttl time.Duration) (*x509.Certificate, error)
- func GenerateRootCertCSR(org, cn string, publicKey interface{}, ttl time.Duration) (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCSR ¶
GenerateCSR creates a X.509 certificate sign request and private key.
func GenerateCSRCertificate ¶
func GenerateCSRCertificate(csr *x509.CertificateRequest, subject string, identityBundle *identity.Bundle, signingCert *x509.Certificate, publicKey interface{}, signingKey crypto.PrivateKey, ttl time.Duration, isCA bool) ([]byte, error)
GenerateCSRCertificate returns an x509 Certificate from a CSR, signing cert, public key, signing private key and duration.
func GenerateIssuerCertCSR ¶
func GenerateRootCertCSR ¶
func GenerateRootCertCSR(org, cn string, publicKey interface{}, ttl time.Duration) (*x509.Certificate, error)
GenerateRootCertCSR returns a CA root cert x509 Certificate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.