Documentation
¶
Index ¶
- func GenerateCABundle(subCACert *x509.Certificate, rootCACert *x509.Certificate) ([]byte, error)
- func GenerateEndEntityCertificateNew(ca *x509.Certificate, caPrivateKey *rsa.PrivateKey, commonName string, ...) (*x509.Certificate, *rsa.PrivateKey, error)
- func GenerateRootCA(caCert *x509.Certificate, caKey *rsa.PrivateKey, caAuthority string) (*x509.Certificate, *rsa.PrivateKey, error)
- func GenerateSubCA(rootCert *x509.Certificate, rootKey *rsa.PrivateKey, path string) (*x509.Certificate, *rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCABundle ¶
func GenerateCABundle(subCACert *x509.Certificate, rootCACert *x509.Certificate) ([]byte, error)
func GenerateEndEntityCertificateNew ¶
func GenerateEndEntityCertificateNew(ca *x509.Certificate, caPrivateKey *rsa.PrivateKey, commonName string, organizationName string, dnsNames, ipAddresses, emailAddresses []string, expiresAt time.Time) (*x509.Certificate, *rsa.PrivateKey, error)
func GenerateRootCA ¶
func GenerateRootCA(caCert *x509.Certificate, caKey *rsa.PrivateKey, caAuthority string) (*x509.Certificate, *rsa.PrivateKey, error)
func GenerateSubCA ¶
func GenerateSubCA(rootCert *x509.Certificate, rootKey *rsa.PrivateKey, path string) (*x509.Certificate, *rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.