Documentation ¶
Index ¶
- func RetrieveCertificate(cert string) (*ca.Certificate, error)
- func RetrieveCertificateFile(certFile string) (*ca.Certificate, error)
- func RetrieveEncrypedPrivKey(algorithm string, privkey string, pwd []byte) (*framework.PrivKey, error)
- func RetrievePrivKey(algorithm string, privkey string) (*framework.PrivKey, error)
- func RetrievePrivKeyFile(algorithm string, privkeyFile string) (*framework.PrivKey, error)
- func RetrievePubKey(certificate *ca.Certificate) (*framework.PubKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveCertificate ¶
func RetrieveCertificate(cert string) (*ca.Certificate, error)
解析X509证书,支持RSA 2048,ECDSA P-256,ED25519,SM2 SM3WithSM2
func RetrieveCertificateFile ¶ added in v1.3.3
func RetrieveCertificateFile(certFile string) (*ca.Certificate, error)
func RetrieveEncrypedPrivKey ¶
func RetrieveEncrypedPrivKey(algorithm string, privkey string, pwd []byte) (*framework.PrivKey, error)
解析X509加密私钥文件
func RetrievePrivKey ¶
解析X509私钥文件
func RetrievePrivKeyFile ¶ added in v1.3.3
func RetrievePubKey ¶
func RetrievePubKey(certificate *ca.Certificate) (*framework.PubKey, error)
解析证书公钥信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.