https

package
v0.0.0-...-288c2a5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)
}

The https manager which provides the certificate.

func NewLetsencryptManager

func NewLetsencryptManager(email string, hosts []string, cacheFile string) (m Manager, err error)

Register the email to letsencrypt, cache the certs in cacheFile, set allow hosts. @remark set hosts to empty string when allow all request hosts, but maybe attack. @remark set email to nil to not regiester, use empty email to request cert from letsencrypt. @remark set cacheFile to empty string to not cache the info and certs. @remark we only use tls validate, https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#tls-with-server-name-indication-tls-sni

so the https port must be 443, we cannot serve at other ports.

func NewSelfSignManager

func NewSelfSignManager(certFile, keyFile string) (m Manager, err error)

Directories

Path Synopsis
fork from https://github.com/rsc/letsencrypt/tree/master/vendor/github.com/xenolf/lego/acme fork from https://github.com/xenolf/lego/tree/master/acme
fork from https://github.com/rsc/letsencrypt/tree/master/vendor/github.com/xenolf/lego/acme fork from https://github.com/xenolf/lego/tree/master/acme
crypto
from gopkg.in/square/go-jose.v1
from gopkg.in/square/go-jose.v1
Package letsencrypt obtains TLS certificates from LetsEncrypt.org.
Package letsencrypt obtains TLS certificates from LetsEncrypt.org.
net
time

Jump to

Keyboard shortcuts

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