keygen

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Store *storage.Filesystem
}

Generator wraps the storage backend to allow for re-using private keys when re-issuing a certificate. It generates 2048-bit RSA private keys.

func (*Generator) KeyForMetadata

func (k *Generator) KeyForMetadata(meta metadata.Metadata) (crypto.PrivateKey, error)

KeyForMetadata generates a 2048-bit RSA private key, or returns an existing one if the reuse private key attribute is present.

Jump to

Keyboard shortcuts

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