package
0.19.176
Repository: https://github.com/effective-security/xpki.git
Documentation: pkg.go.dev

# Functions

CrlDpURL is an Option for setting the entity's certificate's CRL Distribution Point.
DNSName is an Option for setting the SAN.
Extensions is an Option for setting extensions.
ExtKeyUsage is an Option for setting the extended key usage.
GenerateECDSAKeyInPEM returns PEM encoded ECDSA key.
GenerateRSAKeyInPEM returns PEM encoded RSA key.
Issuer is an Option for setting the entity's issuer.
IssuingCertificateURL is an Option for setting the entity's certificate's IssuingCertificateURL.
KeyUsage is an Option for setting the key usage.
MakeInvalidCertsChainTSA creates invalid TSA cert with several critical EKU extensions.
MakeSelfCertECDSA creates self-signed cert.
MakeSelfCertECDSAPem creates self-signed cert in PEM format.
MakeSelfCertRSA creates self-signed cert.
MakeSelfCertRSAPem creates self-signed cert in PEM format.
MakeValidCertsChainTSA creates valid TSA cert with the only critical EKU extension for timestamping.
NewEntity creates a new CA.
NextSerialNumber is an Option that determines the SN of the next issued certificate.
NotAfter is an Option for setting the entity's certificate's NotAfter.
NotBefore is an Option for setting the entity's certificate's NotBefore.
OCSPServer is an Option for setting the entity's certificate's OCSPServer.
PrivateKey is an Option for setting the entity's private key.
PrivKeyToPEM exports private key to PEM.
SetSAN fills template's IPAddresses, EmailAddresses, and DNSNames with the content of SAN, if it is not nil.
Subject is an Option that sets a entity's subject field.
ToDER exports private key to DER.
ToPEM exports cert to PEM.
ToPFX converts cert with private key to PFX.
ToPKCS8 exports private key to PKCS8.

# Variables

Authority is an Option for making an entity a certificate authority.
DefaultCommonName is the default subject CommonName.
DefaultCountry is the default subject Country.
DefaultLocality is the default subject Locality.
DefaultPostalCode is the default subject PostalCode.
DefaultProvince is the default subject Province.
DefaultStreetAddress is the default subject StreetAddress.

# Structs

Entity is a certificate and private key.
KeyAndCertChain provides PrivateKey and its certificates chain.

# Type aliases

Option is an option that can be passed to New().