certificate

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 5 Imported by: 2

README

Certificate

Go Certificate, TLS Config helper package

Documentation

Index

Constants

This section is empty.

Variables

Ciphers is a list of safe-to-use ciphers.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Cert      string `json:"cert" yaml:"cert"`
	Key       string `json:"key" yaml:"key"`
	UseTLS    bool   `json:"useTLS" yaml:"useTLS"`
	TLSConfig *tls.Config
}

func Default

func Default() (*Certificate, error)

func New

func New(minVersion uint16, clientAuthType tls.ClientAuthType, tlsFlagEnv, certEnv, keyEnv string) (*Certificate, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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