Documentation
¶
Index ¶
- func Leaf(c *tls.Certificate) (*x509.Certificate, error)
- func LoadPemCertificate(path string) (*tls.Certificate, error)
- func LoadPemPrivateKey(path string) (crypto.PrivateKey, error)
- func ParsePemCertificate(bytes []byte) (*tls.Certificate, error)
- func ParsePemPrivateKey(bytes []byte) (crypto.PrivateKey, error)
- func ResolveCertificateExtension(cert *x509.Certificate, oid asn1.ObjectIdentifier) ([]byte, error)
- type Base64Encoded
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Leaf ¶
func Leaf(c *tls.Certificate) (*x509.Certificate, error)
func LoadPemCertificate ¶
func LoadPemCertificate(path string) (*tls.Certificate, error)
func LoadPemPrivateKey ¶
func LoadPemPrivateKey(path string) (crypto.PrivateKey, error)
func ParsePemCertificate ¶
func ParsePemCertificate(bytes []byte) (*tls.Certificate, error)
func ParsePemPrivateKey ¶
func ParsePemPrivateKey(bytes []byte) (crypto.PrivateKey, error)
func ResolveCertificateExtension ¶
func ResolveCertificateExtension(cert *x509.Certificate, oid asn1.ObjectIdentifier) ([]byte, error)
ResolveCertificateExtension returns the value of a certificate extension if it exists
Types ¶
type Base64Encoded ¶
type Base64Encoded []byte
func (Base64Encoded) String ¶
func (v Base64Encoded) String() string
func (*Base64Encoded) UnmarshalJSON ¶
func (v *Base64Encoded) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.