Documentation ¶
Index ¶
- func GeneratePrivateKey(typ string) string
- type Certificate
- func GenerateCertificateAuthority(cn string, daysValid int) (Certificate, error)
- func GenerateCertificateAuthorityWithPEMKey(cn string, daysValid int, privPEM string) (Certificate, error)
- func GenerateSelfSignedCertificate(cn string, ips []interface{}, alternateDNS []interface{}, daysValid int) (Certificate, error)
- func GenerateSignedCertificate(cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ...) (Certificate, error)
- func GenerateSignedCertificateWithPEMKey(cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ...) (Certificate, error)
- type DSAKeyFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
Types ¶
type Certificate ¶
func GenerateCertificateAuthority ¶
func GenerateCertificateAuthority( cn string, daysValid int, ) (Certificate, error)
func GenerateCertificateAuthorityWithPEMKey ¶
func GenerateCertificateAuthorityWithPEMKey( cn string, daysValid int, privPEM string, ) (Certificate, error)
func GenerateSelfSignedCertificate ¶
func GenerateSelfSignedCertificate( cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ) (Certificate, error)
func GenerateSignedCertificate ¶
func GenerateSignedCertificate( cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ca Certificate, ) (Certificate, error)
func GenerateSignedCertificateWithPEMKey ¶
func GenerateSignedCertificateWithPEMKey( cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ca Certificate, privPEM string, ) (Certificate, error)
type DSAKeyFormat ¶
DSAKeyFormat stores the format for DSA keys. Used by pemBlockForKey
Click to show internal directories.
Click to hide internal directories.