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 LimitTTL(ttl time.Duration) int64
- func ParseCertificate(data []byte) (tlscert *tls.Certificate, privPEM, pubPEM []byte, err error)
- func ToPEMBlock(data interface{}) *pem.Block
- 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)
func ToPEMBlock ¶ added in v0.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.