Documentation ¶
Index ¶
- func CreateCertificate(t testing.TB, rand io.Reader, template, parent *x509.Certificate, ...) []byte
- func CreateCertificateRequest(t testing.TB, rand io.Reader, template *x509.CertificateRequest, priv any) (csr []byte)
- func CreateRevocationList(t testing.TB, rand io.Reader, template *x509.RevocationList, ...) []byte
- func DecryptPEMBlock(t testing.TB, b *pem.Block, password []byte) []byte
- func EncryptPEMBlock(t testing.TB, rand io.Reader, blockType string, data, password []byte, ...) *pem.Block
- func MarshalECPrivateKey(t testing.TB, key *ecdsa.PrivateKey) []byte
- func MarshalPKCS8PrivateKey(t testing.TB, key any) []byte
- func MarshalPKIXPublicKey(t testing.TB, pub any) []byte
- func ParseCRL(t testing.TB, crlBytes []byte) *pkix.CertificateList
- func ParseCertificate(t testing.TB, der []byte) *x509.Certificate
- func ParseCertificateRequest(t testing.TB, asn1Data []byte) *x509.CertificateRequest
- func ParseCertificates(t testing.TB, der []byte) []*x509.Certificate
- func ParseDERCRL(t testing.TB, derBytes []byte) *pkix.CertificateList
- func ParseECPrivateKey(t testing.TB, der []byte) *ecdsa.PrivateKey
- func ParsePKCS1PrivateKey(t testing.TB, der []byte) *rsa.PrivateKey
- func ParsePKCS1PublicKey(t testing.TB, der []byte) *rsa.PublicKey
- func ParsePKCS8PrivateKey(t testing.TB, der []byte) (key any)
- func ParsePKIXPublicKey(t testing.TB, derBytes []byte) (pub any)
- func SystemCertPool(t testing.TB) *x509.CertPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
func CreateRevocationList ¶
func EncryptPEMBlock ¶
func MarshalECPrivateKey ¶
func MarshalECPrivateKey(t testing.TB, key *ecdsa.PrivateKey) []byte
func ParseCertificate ¶
func ParseCertificate(t testing.TB, der []byte) *x509.Certificate
func ParseCertificateRequest ¶
func ParseCertificateRequest(t testing.TB, asn1Data []byte) *x509.CertificateRequest
func ParseCertificates ¶
func ParseCertificates(t testing.TB, der []byte) []*x509.Certificate
func ParseDERCRL ¶
func ParseDERCRL(t testing.TB, derBytes []byte) *pkix.CertificateList
func ParseECPrivateKey ¶
func ParseECPrivateKey(t testing.TB, der []byte) *ecdsa.PrivateKey
func ParsePKCS1PrivateKey ¶
func ParsePKCS1PrivateKey(t testing.TB, der []byte) *rsa.PrivateKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.