Documentation ¶
Index ¶
- func EncodePEM(ca *x509.Certificate, cert *x509.Certificate, priv *rsa.PrivateKey) ([]byte, []byte, []byte, error)
- func GenerateCA(privateKey *rsa.PrivateKey) (*x509.Certificate, error)
- func GenerateCertificate(ca *x509.Certificate, privateKey *rsa.PrivateKey, hosts []string, ...) (*x509.Certificate, error)
- func Issue(hosts []string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePEM ¶ added in v1.4.0
func EncodePEM(ca *x509.Certificate, cert *x509.Certificate, priv *rsa.PrivateKey) ([]byte, []byte, []byte, error)
func GenerateCA ¶ added in v1.4.0
func GenerateCA(privateKey *rsa.PrivateKey) (*x509.Certificate, error)
func GenerateCertificate ¶ added in v1.4.0
func GenerateCertificate(ca *x509.Certificate, privateKey *rsa.PrivateKey, hosts []string, commonName string) (*x509.Certificate, error)
func Issue ¶
func Issue(hosts []string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, error)
Issue returns CA certificate, TLS certificate and TLS private key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.