Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCA ¶
func GenerateCA(years int) (*x509.Certificate, *rsa.PrivateKey, error)
GenerateCA generates a new CA key pair with the given validity in years
func GenerateLocalhost ¶
func GenerateLocalhost(ca *x509.Certificate, caKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error)
GenerateLocalhost generates a new key pair for localhost signed by the given CA key pair
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.