Versions in this module Expand all Collapse all v1 v1.6.4 Jun 2, 2022 Changes in this version + func Generate(priv crypto.Signer, req *CertificateRequest) (csr []byte, err error) + func IsNameEmpty(n Name) bool + func OIDFromString(s string) (asn1.ObjectIdentifier, error) + func ParseRequest(req *CertificateRequest) (csr, key []byte, err error) + func Regenerate(priv crypto.Signer, csr []byte) ([]byte, error) + type BasicConstraints struct + IsCA bool + MaxPathLen int + type CAConfig struct + Backdate string + Expiry string + PathLenZero bool + PathLength int + type CertificateRequest struct + CA *CAConfig + CN string + CRL string + DelegationEnabled bool + Extensions []pkix.Extension + Hosts []string + KeyRequest *KeyRequest + Names []Name + SerialNumber string + func ExtractCertificateRequest(cert *x509.Certificate) *CertificateRequest + func New() *CertificateRequest + func (cr *CertificateRequest) Name() (pkix.Name, error) + type Generator struct + Validator func(*CertificateRequest) error + func (g *Generator) ProcessRequest(req *CertificateRequest) (csr, key []byte, err error) + type KeyRequest struct + A string + S int + func NewKeyRequest() *KeyRequest + func (kr *KeyRequest) Algo() string + func (kr *KeyRequest) Generate() (crypto.PrivateKey, error) + func (kr *KeyRequest) SigAlgo() x509.SignatureAlgorithm + func (kr *KeyRequest) Size() int + type Name struct + C string + E string + L string + O string + OID map[string]string + OU string + ST string + SerialNumber string