Documentation ¶
Index ¶
- func CertAsBytes(certs ...*x509.Certificate) (b []byte, err error)
- func GenerateKeyAndCertificate(commonName string, parentKey *rsa.PrivateKey, parentCert *x509.Certificate, ...) (*rsa.PrivateKey, []*x509.Certificate, error)
- func GenerateTestKeyAndCertificate(commonName string, parentKey *rsa.PrivateKey, parentCert *x509.Certificate, ...) (*rsa.PrivateKey, []*x509.Certificate, error)
- func PrivateKeyAsBytes(key *rsa.PrivateKey) (b []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertAsBytes ¶
func CertAsBytes(certs ...*x509.Certificate) (b []byte, err error)
func GenerateKeyAndCertificate ¶
func GenerateKeyAndCertificate(commonName string, parentKey *rsa.PrivateKey, parentCert *x509.Certificate, isCA bool, isClient bool) (*rsa.PrivateKey, []*x509.Certificate, error)
func GenerateTestKeyAndCertificate ¶
func GenerateTestKeyAndCertificate(commonName string, parentKey *rsa.PrivateKey, parentCert *x509.Certificate, isCA bool, isClient bool, tweakTemplate func(*x509.Certificate)) (*rsa.PrivateKey, []*x509.Certificate, error)
func PrivateKeyAsBytes ¶
func PrivateKeyAsBytes(key *rsa.PrivateKey) (b []byte, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.