tls

package
v0.0.0-...-2b3f9b9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	CACert *x509.Certificate
	// contains filtered or unexported fields
}

DB represents a TLS database

func NewDB

func NewDB() (*DB, error)

NewDB instantiates a new TLS database

func (*DB) GetKeyAndCertificate

func (db *DB) GetKeyAndCertificate(commonName string) (*rsa.PrivateKey, *x509.Certificate, error)

GetKeyAndCertificate returns a cached key and certificate, or creates and caches new ones

Jump to

Keyboard shortcuts

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