utils

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificates

func GenerateCertificates(config *CertificatesConfig) error

GenerateCertificates create a self-signed certificate with a private key according the config in parameter

Types

type CertificatesConfig

type CertificatesConfig struct {
	Hosts        string
	ValidFor     time.Duration
	RsaBits      int
	EcdsaCurve   string
	CertFilePath string
	KeyFilePath  string
}

CertificatesConfig holds certificate configuration

Jump to

Keyboard shortcuts

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