Documentation ¶
Index ¶
Constants ¶
View Source
const ( CertificateExtension = "pem" PrivateKeyExtension = "key" )
We'll use .pem and .key files to store our certificate and private key, trying to play nice with x509 standards Note that this storage doesn't know anything about the encoding and merely exists to write bytes to disk
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
func (*Certificate) GetCertificate ¶
func (c *Certificate) GetCertificate(domain string, sans []string) (publicChain, privateKey []byte, err error)
func (*Certificate) PutCertificate ¶
func (c *Certificate) PutCertificate(domain string, sans []string, publicChain, privateKey []byte) (err error)
Click to show internal directories.
Click to hide internal directories.