tls

package
v0.0.0-...-4c37742 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureTLS

func ConfigureTLS() (err error)

ConfigureTLS is the principal entry point into the TLS library, and is responsible for the entire TLS security workflow

func GetTLSRootDir

func GetTLSRootDir() string

GetTLSRootDir - Get the TLS root dir conditionally of users' OS.

func SignCertificate

func SignCertificate(cn string, sans []string) (key, cert []byte, err error)

SignCertificate creates a singular certificate request based only on the CN supplied it then saves the key and certificate to disk at ~/.tok/tls/{project}/{cn}.[crt|key] while also returning both as byte slices

Types

This section is empty.

Jump to

Keyboard shortcuts

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