ca

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

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

func RetrievePrivKey(algorithm string, privkey string) (*framework.PrivKey, error)

解析X509私钥文件

func RetrievePrivKeyFile added in v1.3.3

func RetrievePrivKeyFile(algorithm string, privkeyFile string) (*framework.PrivKey, error)

func RetrievePubKey

func RetrievePubKey(certificate *ca.Certificate) (*framework.PubKey, error)

解析证书公钥信息

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL