Documentation ¶
Overview ¶
Package certs generates self-signed TLS keys with related helper functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenKeys ¶
func GenKeys(host string)
genKeys - Generate self-signed TLS certificate and key. Shamelessly stolen and modified from: https://go.dev/src/crypto/tls/generate_cert.go
func OpenKeyFile ¶
openKeyFile creates and opens a file to write ecdsa key to
func WriteCertFile ¶
Write an X.509 certificate to a file with the given name
func WriteKeyFile ¶
func WriteKeyFile(name string, privKey *ecdsa.PrivateKey) error
writeKeyFile creates and writes an ECDSA private key to a pem file with the given name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.