pki

package
v0.0.0-...-4779486 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCA

func GenerateCA(rsaSize uint16, validityPeriod uint, commonName, organization, certificateFilename, privateKeyFilename string) error

func GenerateClient

func GenerateClient(signer *CertificateAndPrivateKey, rsaSize uint16, validityPeriod uint, commonName, organization string, dnsNames []string, ipAddresses []string, certificateFilename, privateKeyFilename string, update bool) error

func GenerateEncryptionConfig

func GenerateEncryptionConfig() (string, error)

Types

type CertificateAndPrivateKey

type CertificateAndPrivateKey struct {
	CertificateFilename string
	PrivateKeyFilename  string
	Certificate         *x509.Certificate
	PrivateKey          *rsa.PrivateKey
}

func LoadCertificateAndPrivateKey

func LoadCertificateAndPrivateKey(certificateFilename, privateKeyFilename string) (*CertificateAndPrivateKey, error)

Jump to

Keyboard shortcuts

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