cert

package
v0.0.0-...-85b3fc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAlipayPrivateKey

func FormatAlipayPrivateKey(privateKey string) (pKey string)

FormatAlipayPrivateKey 格式化支付宝普通应用秘钥

func FormatAlipayPublicKey

func FormatAlipayPublicKey(publicKey string) (pKey string)

FormatAlipayPublicKey 格式化支付宝普通支付宝公钥

func GetCertSN

func GetCertSN(certPathOrData any) (sn string, pub *rsa.PublicKey, err error)

GetCertSN 获取证书序列号SN certPathOrData x509证书文件路径(appPublicCert.crt、alipayPublicCert.crt) 或证书 buffer 返回 sn:证书序列号(app_cert_sn、alipay_cert_sn) 返回 err:error 信息

func GetRootCertSN

func GetRootCertSN(rootCertPathOrData any) (sn string, err error)

GetRootCertSN 获取root证书序列号SN rootCertPathOrData x509证书文件路径(alipayRootCert.crt) 或文件 buffer 返回 sn:证书序列号(alipay_root_cert_sn) 返回 err:error 信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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