cert

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertP12Detail

func ConvertP12Detail(cert []byte, password string) (commonName string, expirationTime time.Time, err error)

ConvertP12Detail 解析 P12 证书内容,获取过期时间与域名 传入参数为 P12 证书内容与密码

func PemCertToP12

func PemCertToP12(certBuf, keyBuf []byte) (p12Cert []byte, err error)

PemCertToP12 将 pem 证书转换为 PKCS12 格式 传入参数为 pem 证书的内容与私钥内容

Types

This section is empty.

Jump to

Keyboard shortcuts

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