Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2026 Changes in this version + func CACerts(data []byte) ([]*x509.Certificate, error) + func DegenerateCertificates(certs []*x509.Certificate) ([]byte, error) + func ParseSignedCertificates(data []byte, signers []*x509.Certificate) ([]*x509.Certificate, error) + func SignedCertificates(certs []*x509.Certificate, signerCert *x509.Certificate, ...) ([]byte, error) + type CSRReqMessage struct + CSR *x509.CertificateRequest + ChallengePassword string + RawDecrypted []byte + type CertRepMessage struct + CRL []byte + Certificates []*x509.Certificate + type CertsSelector interface + SelectCerts func([]*x509.Certificate) []*x509.Certificate + type CertsSelectorFunc func([]*x509.Certificate) []*x509.Certificate + func EnciphermentCertsSelector() CertsSelectorFunc + func FingerprintCertsSelector(hashType crypto.Hash, hash []byte) CertsSelectorFunc + func NopCertsSelector() CertsSelectorFunc + func (f CertsSelectorFunc) SelectCerts(certs []*x509.Certificate) []*x509.Certificate + type FailInfo string + const BadAlg + const BadCertID + const BadMessageCheck + const BadRequest + const BadTime + func (info FailInfo) String() string + type IssuerAndSerial struct + Issuer []byte + SerialNumber *big.Int + type IssuerAndSubject struct + Issuer []byte + Subject []byte + type MessageType string + const CertPoll + const CertRep + const GetCRL + const GetCert + const PKCSReq + const RenewalReq + const UpdateReq + func (msg MessageType) String() string + type PKIMessage struct + CertificateID *IssuerAndSerial + Certificates []*x509.Certificate + ContentEncryption pkcs7.ContentEncryptionAlgorithm + Digest crypto.Hash + MessageType MessageType + PollRequest *IssuerAndSubject + Raw []byte + Recipients []*x509.Certificate + SenderNonce SenderNonce + SignerCertificate *x509.Certificate + TransactionID TransactionID + func NewCSRRequest(messageType MessageType, csr *x509.CertificateRequest, opts RequestOptions) (*PKIMessage, error) + func NewCertPollRequest(issuer, subject []byte, opts RequestOptions) (*PKIMessage, error) + func NewGetCRLRequest(issuer []byte, serial *big.Int, opts RequestOptions) (*PKIMessage, error) + func NewGetCertRequest(issuer []byte, serial *big.Int, opts RequestOptions) (*PKIMessage, error) + func ParsePKIMessage(data []byte, opts ParseOptions) (*PKIMessage, error) + func (msg *PKIMessage) DecryptPKIEnvelope(cert *x509.Certificate, key crypto.Decrypter, opts pkcs7.DecryptOptions) error + func (msg *PKIMessage) EnvelopeRecipients() ([]IssuerAndSerial, error) + func (msg *PKIMessage) Fail(info FailInfo, opts ResponseOptions) (*PKIMessage, error) + func (msg *PKIMessage) MatchesRequest(req *PKIMessage) error + func (msg *PKIMessage) Pending(opts ResponseOptions) (*PKIMessage, error) + func (msg *PKIMessage) Success(certs []*x509.Certificate, opts ResponseOptions) (*PKIMessage, error) + func (msg *PKIMessage) SuccessCRL(crl []byte, opts ResponseOptions) (*PKIMessage, error) + type PKIStatus string + const FAILURE + const PENDING + const SUCCESS + func (status PKIStatus) String() string + type ParseOptions struct + AllowMD5 bool + LegacyCertificateParser bool + Signers []*x509.Certificate + type RecipientNonce []byte + type RequestOptions struct + Digest crypto.Hash + Encryption pkcs7.EncryptOptions + Recipients []*x509.Certificate + SignerCertificate *x509.Certificate + SignerKey crypto.Signer + TransactionID TransactionID + type ResponseOptions struct + Certificates []*x509.Certificate + ContentEncryption pkcs7.ContentEncryptionAlgorithm + Digest crypto.Hash + SignerCertificate *x509.Certificate + SignerKey crypto.Signer + type SenderNonce []byte + type TransactionID string + func CSRTransactionID(csr *x509.CertificateRequest) (TransactionID, error)