Versions in this module Expand all Collapse all v0 v0.1.0 Sep 5, 2022 Changes in this version + var ErrorInvalidBitSize = errors.New("invalid bit size") + var ErrorInvalidCommonName = errors.New("invalid common name") + var ErrorInvalidSubjectAltName = errors.New("invalid subject alt name") + func GenerateCA(req *Request) ([]byte, []byte, error) + func GenerateCertificate(req *Request, caCrt []byte, caKey []byte) ([]byte, []byte, error) + func GenerateRandomBigInt() (*big.Int, error) + type Request struct + BitSize int + CommonName string + Country string + Locality string + NameSerialNumber string + NotAfter time.Time + NotBefore time.Time + Organization string + OrganizationalUnit string + PostalCode string + Province string + SerialNumber *big.Int + StreetAddress string + SubjectAltNames []string + func NewRequest() *Request + func ReadCSR(csrFile []byte) (*Request, error) + func (req *Request) GetPKIXName() pkix.Name + func (req *Request) Validate() error