Documentation ¶
Index ¶
- func EncodeCertificate(cert *x509.Certificate) ([]byte, error)
- func EncodeKey(key crypto.Signer) ([]byte, error)
- func ParseCertificateBytes(crtBytes []byte) (*x509.Certificate, error)
- func ParseKeyBytes(keyBytes []byte) (crypto.Signer, error)
- func ReadCertificateFile(name string) (*x509.Certificate, error)
- func ReadKeyFile(name string) (crypto.Signer, error)
- func WritePairFiles(pair *Pair, name string) error
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCertificate ¶
func EncodeCertificate(cert *x509.Certificate) ([]byte, error)
func ParseCertificateBytes ¶
func ParseCertificateBytes(crtBytes []byte) (*x509.Certificate, error)
func ReadCertificateFile ¶
func ReadCertificateFile(name string) (*x509.Certificate, error)
func WritePairFiles ¶
Types ¶
type Pair ¶
type Pair struct { Key crypto.Signer Cert *x509.Certificate }
func GenerateSelfSignedCA ¶
func ReadPairFiles ¶
Click to show internal directories.
Click to hide internal directories.