common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause, MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func ConnectDatabase

func ConnectDatabase()

func GetCa

func GetCa() (*x509.Certificate, *rsa.PrivateKey)

GetCa loads the Certificate Authority certificate and private key

func GetCertificateFunc

func GetCertificateFunc(helloInfo *tls.ClientHelloInfo) (*tls.Certificate, error)

GetCertificateFunc copies the certificate from the given server and returns one signed by the CA

Types

type IssSerial

type IssSerial struct {
	// contains filtered or unexported fields
}

IssSerial is a struct that holds the issuer and serial for a certificate for checking if it already exists so you don't make duplicates

Jump to

Keyboard shortcuts

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