cert

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCA

func GenerateCA(years int) (*x509.Certificate, *rsa.PrivateKey, error)

GenerateCA generates a new CA key pair with the given validity in years

func GenerateLocalhost

func GenerateLocalhost(ca *x509.Certificate, caKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error)

GenerateLocalhost generates a new key pair for localhost signed by the given CA key pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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