certificates

package
v0.0.0-...-587f487 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SelfSignedCertificateIssuer = "smplatform self-signed"

SelfSignedCertificateIssuer is the organization that issues self-signed certificates

Variables

This section is empty.

Functions

func GenerateCertificate

func GenerateCertificate(domains ...string) (keyPEM []byte, certPEM []byte, err error)

GenerateCertificate generates a new self-signed TLS certificate (with a RSA 4096-bit key) and returns the private key and public certificate encoded as PEM The first domain is the primary one, used as value for the "Common Name" value too Each certificate is valid for 1 year

func SyncCertificates

func SyncCertificates(sites []state.SiteState) (updated bool, err error)

SyncCertificates ensures that all self-signed certificates are written on disk and synced in the state

Types

This section is empty.

Jump to

Keyboard shortcuts

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