certs

package
v0.0.0-...-6ffa3c9 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EncryptedHttpsKeyFile = "./key/encryptedKey.txt"
	DecryptedHttpsKeyFile = "./key/decryptedKey.pem"
	HttpsCertFile         = "./key/cert.pem"
	EnclaveKeyFile        = "./data/key.txt"
	CsrFile               = "./key/csr.pem"
	CsrDataFile           = "./key/csr_data.json"
	ServerName            = "elfinguard.io"
)

Variables

This section is empty.

Functions

func GenCertFiles

func GenCertFiles(isEnclaveMode bool)

func LoadCertAndDecryptedKey

func LoadCertAndDecryptedKey(certFile, decryptedKeyFile string) (tls.Certificate, error)

func LoadCertAndEncryptedKey

func LoadCertAndEncryptedKey(certFile, encryptedKeyFile string) (tls.Certificate, error)

Types

type CSRData

type CSRData struct {
	CommonName         string `json:"commonName"`
	Country            string `json:"country"`
	Province           string `json:"province"`
	Locality           string `json:"locality"`
	Organization       string `json:"organization"`
	OrganizationalUnit string `json:"organizationalUnit"`
	EmailAddress       string `json:"emailAddress"`
}

Jump to

Keyboard shortcuts

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