pki

package
v0.0.0-...-919f138 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCACertificateAndPrivateKey

func CreateCACertificateAndPrivateKey(name string) ([]byte, []byte, error)

CreateCACertificateAndPrivateKey creates a pair of self-signed certificate and private key for certificate authority with the specified common name.

func CreateClientCertificateAndPrivateKey

func CreateClientCertificateAndPrivateKey(
	name string,
	caCert *x509.Certificate,
	caPrivKey *rsa.PrivateKey,
) ([]byte, []byte, error)

CreateClientCertificateAndPrivateKey creates a pair of client certificate and private key signed by the specified CA.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL