certmaker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLeafCertificate

func FindLeafCertificate(id string) ([]byte, error)

FindLeafCertificate returns the contents of the leaf certificate with the supplied ID

func FindLeafPrivateKey

func FindLeafPrivateKey(id string) ([]byte, error)

FindLeafPrivateKey returns the contents of the leaf private key with the supplied ID

func GenerateLeafCertAndKey

func GenerateLeafCertAndKey(request entity.CertificateRequest) (int64, error)

GenerateLeafCertAndKey generates a certificate signed by the root certificate and a private key.

func GenerateRootCertAndKey

func GenerateRootCertAndKey() error

GenerateRootCertAndKey generates the root private key and with it, the root certificate

func GetNextSerialNumber

func GetNextSerialNumber() (int64, error)

GetNextSerialNumber fetches the next serial number.

func SetupCA

func SetupCA() error

SetupCA checks if root key and certificate exist. if not, both are created. Also check if both files are readable and parseable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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