Documentation ¶
Index ¶
- func GetBaseCertTemplate(cn string, ips []interface{}, alternateDNS []interface{}, daysValid int) (*x509.Certificate, error)
- func GetCertAndKey(template *x509.Certificate, signeeKey *rsa.PrivateKey, ...) (string, string, error)
- func PemBlockForKey(priv interface{}) *pem.Block
- type Certificate
- func BuildCustomCertificate(b64cert string, b64key string) (*Certificate, error)
- func GenerateCertificateAuthority(cn string, daysValid int) (*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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseCertTemplate ¶
func GetBaseCertTemplate( cn string, ips []interface{}, alternateDNS []interface{}, daysValid int, ) (*x509.Certificate, error)
func GetCertAndKey ¶
func GetCertAndKey( template *x509.Certificate, signeeKey *rsa.PrivateKey, parent *x509.Certificate, signingKey *rsa.PrivateKey, ) (string, string, error)
func PemBlockForKey ¶
Types ¶
type Certificate ¶
func BuildCustomCertificate ¶
func BuildCustomCertificate(b64cert string, b64key string) (*Certificate, error)
func GenerateCertificateAuthority ¶
func GenerateCertificateAuthority( cn string, daysValid int, ) (*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)
Click to show internal directories.
Click to hide internal directories.