gencert

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gencert provides a quick and easy utility function for generating a self-signed server certificate and writing it to a temp directory on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert() (path string, err error)

GenerateCert will generate a self-signed certificate and return the path to where the files can be loaded. If no error is returned a tls.crt and tls.key will be present in the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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