autotls

package module
v0.1.0 Latest Latest
Warning

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

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

README

autotls

Support Let's Encrypt for a Kratos server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAutoTlS

func WithAutoTlS(domains []string, opts ...Option) []http.ServerOption

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithEmail

func WithEmail(email string) Option

WithEmail Email optionally specifies a contact email address. This is used by CAs, such as Let's Encrypt, to notify about problems with issued certificates.

func WithRenewBefore

func WithRenewBefore(dur time.Duration) Option

WithRenewBefore RenewBefore optionally specifies how early certificates should be renewed before they expire. If zero , they're renewed 30 days before expiration.

Jump to

Keyboard shortcuts

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