certs

package
v0.0.0-...-eb3285e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certs

type Certs struct {
	Certificate []byte // cert.pem
	Client      []byte // client.pem
	Key         []byte // key.pem
	CA          []byte // ca_certificate.pem

	// I don't think we need this, but I'm not sure
	ServerCert *tls.Certificate
}

func GenerateCertificates

func GenerateCertificates(host string) (*Certs, error)

Generate a self-signed X.509 certificate for a TLS server. Outputs to

Jump to

Keyboard shortcuts

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