package
Version:
v2.0.0
Opens a new window with list of versions in this module.
Published: Feb 28, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Decode(filename, password string) (cert, privateKey []byte, err error)
func DecryptPKCS8PrivateKey(data, password []byte) ([]byte, error)
DecryptPKCS8PrivateKey
const (
CertificateBlock BlockType = "CERTIFICATE"
RSAPrivateKeyBlock BlockType = "RSA PRIVATE KEY"
EncryptedPrivateKeyBlock BlockType = "ENCRYPTED PRIVATE KEY"
)
type DecoderValidator interface {
Decode(filename, password string) (cert, privateKey []byte, err error)
ValidateBlocks(filename string) (isEncrypted bool, err error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.