Versions in this module Expand all Collapse all v2 v2.7.0 Feb 20, 2024 v2.6.0 Jun 10, 2023 v2.5.7 Jan 7, 2023 v2.5.6 Dec 31, 2022 v2.5.5 Dec 7, 2022 Changes in this version + func ParseName(subject string) (pkix.Name, error) + func ReadKeyPair(publicCertFileData []byte, privateKeyFileData []byte) (*x509.Certificate, interface{}, error) + func WriteKeyPair(kp *KeyPair, publicCertificateFile string, privateKeyFile string) error + type Args struct + CA bool + CommonName string + Country string + Hostnames []string + KeyType *KeyType + Locality string + Organization string + OrganizationalUnit string + ParentKeyPair *KeyPair + Province string + Validity time.Duration + func (args *Args) GetKeyType() *KeyType + type KeyPair struct + PrivateKey []byte + PublicCertificate []byte + func GenerateAndWriteKeyPair(args *Args, publicCertificateFile string, privateKeyFile string) (*KeyPair, error) + func GenerateKeyPair(args *Args) (*KeyPair, error) + func ReadKeyPairFromFile(publicCertificateFile string, privateKeyFile string) (*KeyPair, error) + type KeyType struct + Algorithm string + KeyLength int