selfsign

package module
v0.0.0-...-de9e55a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 10 Imported by: 0

README

Golang package to maintain self-signed certificate for a test server.

Certificate is stored on disk, so it browser won't complain about new certificate each time the code is run.

Documentation

Index

Constants

View Source
const (
	KEYBLOCK  = "RSA PRIVATE KEY"
	CERTBLOCK = "CERTIFICATE"
)

Variables

View Source
var (
	NoSuchBlock = errors.New("No such PEM block")
)

Functions

func GenerateCertificate

func GenerateCertificate(hostname, certfile, keyfile string) error

func ReadCertificates

func ReadCertificates(certfile, keyfile string) (cert *x509.Certificate, key *rsa.PrivateKey)

Types

This section is empty.

Jump to

Keyboard shortcuts

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