Versions in this module Expand all Collapse all v4 v4.12.0 Dec 19, 2023 v4.11.2 Dec 13, 2023 Changes in this version + const EC256 + const EC384 + const OCSPGood + const OCSPRevoked + const OCSPServerFailed + const OCSPUnknown + const RSA2048 + const RSA4096 + const RSA8192 + func ExtractDomains(cert *x509.Certificate) []string + func ExtractDomainsCSR(csr *x509.CertificateRequest) []string + func GenerateCSR(privateKey crypto.PrivateKey, domain string, san []string, mustStaple bool) ([]byte, error) + func GeneratePemCert(privateKey *rsa.PrivateKey, domain string, extensions []pkix.Extension) ([]byte, error) + func GeneratePrivateKey(keyType KeyType) (crypto.PrivateKey, error) + func PEMBlock(data interface{}, pkcsType *PKCSType) *pem.Block + func PEMEncode(data interface{}) []byte + func PEMEncodeWithPKCSType(data interface{}, pkcsType *PKCSType) []byte + func ParsePEMBundle(bundle []byte) ([]*x509.Certificate, error) + func ParsePEMCertificate(cert []byte) (*x509.Certificate, error) + func ParsePEMPrivateKey(key []byte) (crypto.PrivateKey, error) + func PemDecodeTox509CSR(data []byte) (*x509.CertificateRequest, error) + type DERCertificateBytes []byte + type KeyType string + type PKCSType int + var PKCS1 PKCSType = 1 + var PKCS8 PKCSType = 8