Documentation ¶
Index ¶
- func EncodeCertPEM(cert *x509.Certificate) []byte
- func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte
- func GenerateCertAndKey(commonName string, extKeyUsages []x509.ExtKeyUsage, caCert *x509.Certificate, ...) (*x509.Certificate, *rsa.PrivateKey, error)
- func GeneratePrivateKey() (*rsa.PrivateKey, error)
- func GenerateSelfSignedCACert(commonName string, key *rsa.PrivateKey) (*x509.Certificate, error)
- func GenerateSelfSignedCACertAndKey(commonName string) (*x509.Certificate, *rsa.PrivateKey, error)
- func GenerateSignedCert(commonName string, extKeyUsages []x509.ExtKeyUsage, key *rsa.PrivateKey, ...) (*x509.Certificate, error)
- func WriteCertPEM(path string, cert *x509.Certificate) error
- func WritePrivateKeyPEM(path string, key *rsa.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCertPEM ¶
func EncodeCertPEM(cert *x509.Certificate) []byte
func EncodePrivateKeyPEM ¶
func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte
func GenerateCertAndKey ¶
func GenerateCertAndKey(commonName string, extKeyUsages []x509.ExtKeyUsage, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error)
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*rsa.PrivateKey, error)
func GenerateSelfSignedCACert ¶
func GenerateSelfSignedCACert(commonName string, key *rsa.PrivateKey) (*x509.Certificate, error)
func GenerateSelfSignedCACertAndKey ¶
func GenerateSelfSignedCACertAndKey(commonName string) (*x509.Certificate, *rsa.PrivateKey, error)
func GenerateSignedCert ¶
func GenerateSignedCert(commonName string, extKeyUsages []x509.ExtKeyUsage, key *rsa.PrivateKey, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*x509.Certificate, error)
func WriteCertPEM ¶
func WriteCertPEM(path string, cert *x509.Certificate) error
func WritePrivateKeyPEM ¶
func WritePrivateKeyPEM(path string, key *rsa.PrivateKey) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.