Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelfSignedRSAKeypair ¶
func SelfSignedRSAKeypair(cn string, days int) (*rsa.PrivateKey, *x509.Certificate, error)
SelfSignedRSAKeypair generates a 2048-bit RSA private key and self-signs an X.509 certificate using it. You can set the Common Name in cn and the validity duration with days.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.