Documentation
¶
Index ¶
- func GenerateCSR(private any, req *pb.CSRRequest) (string, error)
- func GenerateKey(req *pb.GenKeyRequest) (any, error)
- func GenerateRootCert(priv any, config *conf.RootCert) (string, string, error)
- func LoadCRL(crlStr string) (*x509.RevocationList, error)
- func LoadCSR(csr string) (*x509.CertificateRequest, error)
- func LoadCert(cert string) (*x509.Certificate, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PrivatePemToKey(privStr string) (any, error)
- func PrivateToPEM(priv any) (string, error)
- func SignCert(priv any, parent *x509.Certificate, csr *x509.CertificateRequest, day int) (string, *big.Int, error)
- func Str2BigInt(str string) (*big.Int, bool)
- func StrToIP(ips []string) (netIPs []net.IP, err error)
- func TripleDESDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDESEncrypt(origData, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRootCert ¶
生成根证书和CRL
func PrivatePemToKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.