cert

package module
v0.0.0-...-2d044d7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 10 Imported by: 0

README

cert

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCACert

func GenCACert(
	commonName, organizationName, countryCode string, validYears int,
	keyFileName, cerFileName string,
) (*rsa.PrivateKey, *x509.Certificate, error)

func GenCert

func GenCert(
	hostName, commonName, organizationName, countryCode string, validDays int,
	caPriv *rsa.PrivateKey, caCer *x509.Certificate,
	keyFileName, cerFileName string,
) (*rsa.PrivateKey, *x509.Certificate, error)

func LoadCert

func LoadCert(cerFileName string) (*x509.Certificate, error)

func LoadKey

func LoadKey(keyFileName string) (*rsa.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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