Versions in this module Expand all Collapse all v2 v2.5.0 Feb 3, 2024 Changes in this version + const BadAlg + const BadCertID + const BadMessageCheck + const BadRequest + const BadTime + const CertPoll + const CertRep + const FAILURE + const GetCRL + const GetCert + const PENDING + const PKCSReq + const RenewalReq + const SUCCESS + const UpdateReq + func CACerts(data []byte) ([]*x509.Certificate, error) + func DegenerateCertificates(certs []*x509.Certificate) ([]byte, error) + type CSRReqMessage struct + CSR *x509.CertificateRequest + ChallengePassword string + RawDecrypted []byte + type CertRepMessage struct + Certificate *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 + func (info FailInfo) String() string + type MessageType string + func (msg MessageType) String() string + type Option func(*config) + func WithCACerts(caCerts []*x509.Certificate) Option + func WithCertsSelector(selector CertsSelector) Option + func WithLogger(logger log.Logger) Option + type PKIMessage struct + Raw []byte + Recipients []*x509.Certificate + SignerCert *x509.Certificate + SignerKey *rsa.PrivateKey + func NewCSRRequest(csr *x509.CertificateRequest, tmpl *PKIMessage, opts ...Option) (*PKIMessage, error) + func ParsePKIMessage(data []byte, opts ...Option) (*PKIMessage, error) + func (msg *PKIMessage) DecryptPKIEnvelope(cert *x509.Certificate, key *rsa.PrivateKey) error + func (msg *PKIMessage) Fail(crtAuth *x509.Certificate, keyAuth *rsa.PrivateKey, info FailInfo) (*PKIMessage, error) + func (msg *PKIMessage) Success(crtAuth *x509.Certificate, keyAuth *rsa.PrivateKey, crt *x509.Certificate) (*PKIMessage, error) + type PKIStatus string + type RecipientNonce []byte + type SenderNonce []byte + type TransactionID string Other modules containing this package github.com/admin-punon/scep