certprovider

package
v0.0.0-...-03f38da Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package certprovider contains the bundled certificate providers for shttp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LetsEncrypt

func LetsEncrypt(domain string, certDir string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)

LetsEncrypt is a certificate provider using ACME and the LetsEncrypt service certDir is a directory used for caching certificates, and must be accessible/ writeable to the server's user/group.

func Manual

func Manual(certFile string, keyFile string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)

Manual is the certificate provider you would choose if you already have your own .pem .crt or .key files

func SelfSign

func SelfSign(organization string, host string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)

SelfSign will generate a self-signed certificat for the server. organization is the self-selected organization to sign as. host is a comma-separated list of domains/hosts to sign for. Will default to "127.0.0.1,::1,example.com"

Types

This section is empty.

Jump to

Keyboard shortcuts

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