certificate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CertificateFileName = "certificate.pem"
View Source
const KeyFileName = "key.pem"

Variables

This section is empty.

Functions

func CertificatesPresent

func CertificatesPresent() bool

CertificatesPresent checks if the required TLS certificate is present

func GenerateCertificates

func GenerateCertificates(hostname string) error

GenerateCertificates creates a new TLS certificate using openssl. No Apple Key extraction required. Thanks to https://github.com/seemoo-lab/opendrop/blob/cbc7ca46a75bb2da4af9d406732ddf2192578388/opendrop/config.py#L136

func GetTLSTransport

func GetTLSTransport() (*http.Transport, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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