Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReasonUnspecified = 0 ReasonKeyCompromise = 1 ReasonCACompromise = 2 ReasonAffiliationChanged = 3 ReasonSuperseded = 4 ReasonCessationOfOperation = 5 ReasonCertificateHold = 6 ReasonRemoveFromCRL = 8 ReasonPrivilegeWithdrawn = 9 ReasonAACompromise = 10 )
RevocationReason constants
Variables ¶
This section is empty.
Functions ¶
func CheckRevocation ¶
func CheckRevocation(cert *x509.Certificate, crl *x509.RevocationList) bool
CheckRevocation checks if a certificate is revoked in the CRL
func GenerateCRL ¶
GenerateCRL generates a Certificate Revocation List
Types ¶
type CRLConfig ¶
type CRLConfig struct {
// The CA certificate that will sign the CRL
CAKeyPair *keyPair
// CA Certificate
CACertificate *x509.Certificate
// List of revoked certificates
RevokedCerts []*RevokedCertificate
// CRL validity period
ValidityDays int
// CRL number (for incremental CRLs)
Number int64
// URLs for CRL distribution
DistributionURL string
}
CRLConfig holds configuration for CRL generation
Click to show internal directories.
Click to hide internal directories.