package
Version:
v0.0.0-...-04aba3d
Opens a new window with list of versions in this module.
Published: Nov 4, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func BuildCA() (cert []byte, key []byte, err error)
-
func BuildClientCertificate(caCert []byte, caKey []byte, commonName string) (cert []byte, key []byte, err error)
-
func BuildServerCertificate(caCert []byte, caKey []byte, commonName string) (cert []byte, key []byte, err error)
BuildCA creates a self-signed CA certificate.
BuildClientCertificate creates a certificate that can be used
for client authentication.
BuildServerCertificate creates a certificate that can be used
for server authentication.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.