generatepem

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(c Config) (Pems, Pems, error)

Types

type Config

type Config struct {
	Host     string `envconfig:"HOST" required:"true" description:"Comma-separated hostnames and IPs to generate a certificate for"`
	ValidFor int    `envconfig:"TIME_DATE" default:"10000" description:"expiry time in days"`
	//IsCA       bool   `envconfig:"CA" default:"false" description:"whether this cert should be its own Certificate Authority"`
	RsaBits    int    `envconfig:"RSA_BITS" default:"2048" description:"Size of RSA key to generate. Ignored if --ecdsa-curve is set"`
	EcdsaCurve string `` /* 140-byte string literal not displayed */
	Ed25519Key bool   `envconfig:"ED25519" default:"false" description:"Generate an Ed25519 key"`
}

type Pems

type Pems struct {
	Cert   string
	Key    string
	Public string
}

Jump to

Keyboard shortcuts

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