generator

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package generator acts as the front-end for certificate generation and should always be the way external packages generate certificates.

The proxy functions defined here take all measures necessary, so that a config.CertificateContent directly yields a cert.CertificateContext. It also ensures that the intended defaults are applied as expected.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCertBody

Returns a cert.CertificateContext that corresponds to the supplied config.CertificateContent. This entails calling the Builder() function for each supplied config.ExtensionConfig, so the side offects of these functions also apply. The function will fail, if any call to Builder() or the certificate generation itself fails.

If a crypto.PrivateKey is supplied, it will be used to sign the certificate. Otherwise a new key will be generated. If a cert.CertificateRequest is supplied, the public key of the request will be used instead of generating a new one.

func SignCertBody added in v0.2.0

Returns a cert.Certificate using the suppliec cert.CertificateContext. It also takes care of applying the config.CertificateContent.Manipulations to the certificate. The function will fail, if the signing fails.

Types

This section is empty.

Directories

Path Synopsis
Package cert includes all necessary functions and data structures for certificate generation.
Package cert includes all necessary functions and data structures for certificate generation.
v1
Implements version 1 of the configuration parser.
Implements version 1 of the configuration parser.
db
Generic certificate database package
Generic certificate database package
filesystem
Database implementation for filesystems.
Database implementation for filesystems.

Jump to

Keyboard shortcuts

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