Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePair ¶
func GeneratePair() (*x509.Certificate, *rsa.PrivateKey, error)
Types ¶
type CertificateAuthority ¶
type CertificateAuthority struct {
// contains filtered or unexported fields
}
func New ¶
func New(c *x509.Certificate, p *rsa.PrivateKey) *CertificateAuthority
func (*CertificateAuthority) IssueCert ¶
func (ca *CertificateAuthority) IssueCert(hostname string) (*tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.