Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + func ComparePublicKeys(key1Iface, key2Iface crypto.PublicKey) (bool, error) + func GeneratePrivateKey(keyType string, keyBits int, container ParsedPrivateKeyContainer) error + func GenerateSerialNumber() (*big.Int, error) + func GetHexFormatted(buf []byte, sep string) string + func GetSubjKeyID(privateKey crypto.Signer) ([]byte, error) + func ParseHexFormatted(in, sep string) []byte + func ParsePublicKeyPEM(data []byte) (interface{}, error) + type BlockType string + const ECBlock + const PKCS1Block + const PKCS8Block + type CSRBundle struct + CSR string + PrivateKey string + PrivateKeyType PrivateKeyType + func (c *CSRBundle) ToParsedCSRBundle() (*ParsedCSRBundle, error) + type CertBlock struct + Bytes []byte + Certificate *x509.Certificate + type CertBundle struct + CAChain []string + Certificate string + IssuingCA string + PrivateKey string + PrivateKeyType PrivateKeyType + SerialNumber string + func (c *CertBundle) ToPEMBundle() string + func (c *CertBundle) ToParsedCertBundle() (*ParsedCertBundle, error) + type ClusterKeyParams struct + D *big.Int + Type string + X *big.Int + Y *big.Int + type IssueData struct + AltNames string + CSR string + CommonName string + IPSANs string + OU string + TTL string + type ParsedCSRBundle struct + CSR *x509.CertificateRequest + CSRBytes []byte + PrivateKey crypto.Signer + PrivateKeyBytes []byte + PrivateKeyType PrivateKeyType + func (p *ParsedCSRBundle) SetParsedPrivateKey(privateKey crypto.Signer, privateKeyType PrivateKeyType, ...) + func (p *ParsedCSRBundle) ToCSRBundle() (*CSRBundle, error) + type ParsedCertBundle struct + CAChain []*CertBlock + Certificate *x509.Certificate + CertificateBytes []byte + PrivateKey crypto.Signer + PrivateKeyBytes []byte + PrivateKeyFormat BlockType + PrivateKeyType PrivateKeyType + func ParsePEMBundle(pemBundle string) (*ParsedCertBundle, error) + func ParsePKIJSON(input []byte) (*ParsedCertBundle, error) + func ParsePKIMap(data map[string]interface{}) (*ParsedCertBundle, error) + func (p *ParsedCertBundle) GetCertificatePath() []*CertBlock + func (p *ParsedCertBundle) GetTLSConfig(usage TLSUsage) (*tls.Config, error) + func (p *ParsedCertBundle) SetParsedPrivateKey(privateKey crypto.Signer, privateKeyType PrivateKeyType, ...) + func (p *ParsedCertBundle) ToCertBundle() (*CertBundle, error) + func (p *ParsedCertBundle) Verify() error + type ParsedPrivateKeyContainer interface + SetParsedPrivateKey func(crypto.Signer, PrivateKeyType, []byte) + type PrivateKeyType string + const ECPrivateKey + const RSAPrivateKey + const UnknownPrivateKey + type Secret struct + Data map[string]interface{} + type TLSUsage int + const TLSClient + const TLSServer + const TLSUnknown