temporary

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package temporary provides generated and temporary certificate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ValidFor   time.Duration
	UseED25519 bool
}

type Provider

type Provider struct {
	Config
}

Provider generates a temporary certificate for the given domains. It implements the certificate.Provider interface.

func NewProvider

func NewProvider(c Config) *Provider

NewProvider returns a new temporary certificate provider.

func (*Provider) Provide

func (p *Provider) Provide(ctx context.Context, domains []string) (*tls.Config, error)

Provide generates the certificate and returns the TLS config for the provided domains.

Jump to

Keyboard shortcuts

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