Versions in this module Expand all Collapse all v2 v2.0.0 Feb 28, 2024 Changes in this version + var ErrUnsupportedPEM = errors.New("unsupported encrypted PEM") + func Decode(filename, password string) (cert, privateKey []byte, err error) + func DecryptPKCS8PrivateKey(data, password []byte) ([]byte, error) + func ValidateBlocks(filename string) (isEncrypted bool, err error) + type BlockType string + const CertificateBlock + const EncryptedPrivateKeyBlock + const RSAPrivateKeyBlock + type DecoderValidator interface + Decode func(filename, password string) (cert, privateKey []byte, err error) + ValidateBlocks func(filename string) (isEncrypted bool, err error) + func Default() DecoderValidator Other modules containing this package github.com/fmenezes/mongodb-atlas-cli