Documentation ¶
Index ¶
Constants ¶
View Source
const ( PEMBlockRSAPrivateKey = "RSA PRIVATE KEY" PEMBlockECPrivateKey = "EC PRIVATE KEY" PEMBlockCertificate = "CERTIFICATE" )
Variables ¶
This section is empty.
Functions ¶
func CreateDevTLSCertificate ¶
CreateDevTLSCertificate creates a self-signed certificate for development. Returns certificate DER bytes and private key.
func DERBytesToPEMBlocks ¶
DERBytesToPEMBlocks converts certificate DER bytes and optional private key to PEM blocks. Returns certificate PEM block and private key PEM block.
func DevTLSCertificate ¶
DevTLSCertificate loads or generates new TLS certificate for development.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.