pki

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCA

func CreateCA(org string, cn string) ([]byte, []byte, error)

CreateCA creates a self signed CA. The key pair uses P-256 elliptic curve algorithm. See https://pkg.go.dev/crypto/ecdsa for further information.

func CreateClientCert

func CreateClientCert(name, cn string, caKeyPair tls.Certificate) ([]byte, []byte, error)

CreateClientCert creates a new client certificate

func CreateServerCert

func CreateServerCert(org, cn string, caKeyPair tls.Certificate) ([]byte, []byte, error)

CreateServerCert creates a new server certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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