Versions in this module Expand all Collapse all v0 v0.9.0 Jan 8, 2022 v0.8.4 Oct 12, 2021 v0.8.3 Sep 3, 2021 v0.8.2 Jul 27, 2021 v0.8.1 Jul 27, 2021 v0.8.0 Jun 24, 2021 Changes in this version + const CpsQualifierType + const CurveP256 + const CurveP384 + const CurveP521 + const OneYear + const UserNoticeQualifierType + var BasicConstraintsOID = asn1.ObjectIdentifier + var ExtKeyUsage = map[string]x509.ExtKeyUsage + var KeyUsage = map[string]x509.KeyUsage + func DefaultSigAlgo(priv crypto.Signer) x509.SignatureAlgorithm + func Parse(csrBytes []byte) (*x509.Certificate, error) + func ParsePEM(csrPEM []byte) (*x509.Certificate, error) + func PopulateName(s *X509Subject, req pkix.Name) pkix.Name + func SetSAN(template *x509.Certificate, SAN []string) + func SigAlgo(algo string, size int) x509.SignatureAlgorithm + type AllowedFields struct + DNSNames bool + EmailAddresses bool + IPAddresses bool + Subject bool + URIs bool + type BasicConstraints struct + IsCA bool + MaxPathLen int + type CertificatePolicy struct + ID OID + Qualifiers []CertificatePolicyQualifier + type CertificatePolicyQualifier struct + Type string + Value string + type CertificateRequest struct + CommonName string + KeyRequest KeyRequest + Names []X509Name + SAN []string + SerialNumber string + func (r *CertificateRequest) Name() pkix.Name + func (r *CertificateRequest) Validate() error + type Duration time.Duration + func (d *Duration) UnmarshalJSON(b []byte) error + func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) String() string + func (d Duration) TimeDuration() time.Duration + type KeyPurpose int + const EncryptionKey + const SigningKey + const Undefined + type KeyRequest interface + Algo func() string + Generate func() (crypto.PrivateKey, error) + Label func() string + Purpose func() int + SigAlgo func() x509.SignatureAlgorithm + Size func() int + func NewKeyRequest(prov cryptoprov.Provider, label, algo string, keySize int, purpose KeyPurpose) KeyRequest + type OID asn1.ObjectIdentifier + func (oid *OID) UnmarshalJSON(data []byte) (err error) + func (oid *OID) UnmarshalYAML(unmarshal func(interface{}) error) error + func (oid OID) Equal(other OID) bool + func (oid OID) MarshalJSON() ([]byte, error) + func (oid OID) String() string + type Provider struct + func NewProvider(provider cryptoprov.Provider) *Provider + func (c *Provider) CreateRequestAndExportKey(req *CertificateRequest) (csrPEM, key []byte, keyID string, pub crypto.PublicKey, err error) + func (c *Provider) GenerateKeyAndRequest(req *CertificateRequest) (csrPEM []byte, priv crypto.PrivateKey, keyID string, err error) + func (c *Provider) NewKeyRequest(label, algo string, keySize int, purpose KeyPurpose) KeyRequest + func (c *Provider) NewSigningCertificateRequest(keyLabel, algo string, keySize int, CN string, names []X509Name, san []string) *CertificateRequest + type SignRequest struct + Extensions []X509Extension + NotAfter time.Time + NotBefore time.Time + Profile string + Request string + SAN []string + SerialNumber *big.Int + Subject *X509Subject + type Signer interface + SignCertificate func(req SignRequest) (cert []byte, err error) + type X509Extension struct + Critical bool + ID OID + Value string + type X509Name struct + C string + L string + O string + OU string + ST string + SerialNumber string + type X509Subject struct + CommonName string + Names []X509Name + SerialNumber string + func (s *X509Subject) Name() pkix.Name