dynamiccertauthority

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dynamiccertauthority implements a x509 certificate authority capable of issuing certificates from a dynamically updating CA keypair.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

type CA struct {
	// contains filtered or unexported fields
}

CA is a type capable of issuing certificates.

func New

func New(provider dynamiccert.Provider) *CA

New creates a new CA, ready to issue certs whenever the provided provider has a keypair to provide.

func (*CA) IssuePEM

func (c *CA) IssuePEM(subject pkix.Name, dnsNames []string, ttl time.Duration) ([]byte, []byte, error)

IssuePEM issues a new server certificate for the given identity and duration, returning it as a pair of PEM-formatted byte slices for the certificate and private key.

Jump to

Keyboard shortcuts

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