Versions in this module Expand all Collapse all v0 v0.1.0 Jan 6, 2023 Changes in this version + func CreateSelfSignedCA(certInfo CertificateInfo) (*x509.Certificate, *rsa.PrivateKey, error) + func CreateServerCertificate(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey, ...) (*x509.Certificate, *rsa.PrivateKey, error) + func NewCertificateTemplate(caCert bool, certInfo CertificateInfo) *x509.Certificate + func ReadCertificate(filepath string) (*x509.Certificate, error) + func ReadPrivateKey(filepath string) (*rsa.PrivateKey, error) + func WriteCertificate(filepath string, cert *x509.Certificate) error + func WriteKey(filepath string, key *rsa.PrivateKey) error + type CertificateInfo struct + Country string + DNS []string + Locality string + Organization string + PostalCode string + Province string + StreetAddress string + Validity int