Documentation
¶
Index ¶
- func CalcCertFingerprint(leaf *x509.Certificate) string
- func ConcatPrivAndPubKey(privPEM, pubPEM []byte) []byte
- func CreateNonExistingFolder(path string, perm os.FileMode) error
- func EncodeECDSAKey(w io.Writer, key *ecdsa.PrivateKey) error
- func EncodeRSAKey(w io.Writer, key *rsa.PrivateKey) error
- func ParseCertificate(data []byte) (tlscert *tls.Certificate, privPEM, pubPEM []byte, err error)
- func WriteFile(name string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcCertFingerprint ¶
func CalcCertFingerprint(leaf *x509.Certificate) string
func ConcatPrivAndPubKey ¶
func EncodeECDSAKey ¶
func EncodeECDSAKey(w io.Writer, key *ecdsa.PrivateKey) error
func EncodeRSAKey ¶
func EncodeRSAKey(w io.Writer, key *rsa.PrivateKey) error
func ParseCertificate ¶
func ParseCertificate(data []byte) (tlscert *tls.Certificate, privPEM, pubPEM []byte, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.