Documentation
¶
Index ¶
- func GenerateCaCerts(ctx context.Context, caCertPath string, caKeyPath string) error
- func GenerateClientCert(ctx context.Context, caCertPath string, caKeyPath string, ...) error
- func GenerateServerCert(ctx context.Context, caCertPath string, caKeyPath string, ...) error
- func LoadCACertificate(ctx context.Context, certPath, keyPath string) (*x509.Certificate, *ecdsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCaCerts ¶
func GenerateClientCert ¶
func GenerateClientCert(ctx context.Context, caCertPath string, caKeyPath string, clientCertPath string, clientKeyPath string) error
GenerateClientCert generates a client certificate signed by the given CA.
func GenerateServerCert ¶
func GenerateServerCert(ctx context.Context, caCertPath string, caKeyPath string, serverCertPath string, serverKeyPath string) error
GenerateServerCert generates a server certificate signed by the given CA.
func LoadCACertificate ¶
func LoadCACertificate(ctx context.Context, certPath, keyPath string) (*x509.Certificate, *ecdsa.PrivateKey, error)
LoadCACertificate loads a CA certificate and private key from files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.