certs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(path string, keyPEM string, caConfig string, certName string) error

Generate a certificate using a configuration file and a private key in PEM format.

func CreatePrivateKey

func CreatePrivateKey(path string, keyName string, keySize int) error

Generate a private key in PEM-format.

Types

type Certificate

type Certificate struct {
	Serial        *big.Int    `yaml:"serial"`
	ValidForYears int         `yaml:"validForYears"`
	Subject       certSubject `yaml:"subject"`
	DNSNames      []string    `yaml:"dnsNames"`
}

Jump to

Keyboard shortcuts

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