certgen

package
v0.0.0-...-c770236 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertFilesExist

func CertFilesExist(certFilePath, keyFilePath string) bool

func Certsetup

func Certsetup() (serverTLSConf *tls.Config, clientTLSConf *tls.Config, err error)

func GetConfigDir

func GetConfigDir() string

file location by os

Types

type CertConfig

type CertConfig struct {
	Organization  string `yaml:"organization"`
	Country       string `yaml:"country"`
	Province      string `yaml:"province"`
	Locality      string `yaml:"locality"`
	StreetAddress string `yaml:"street_address"`
	PostalCode    string `yaml:"postal_code"`
}

type Config

type Config struct {
	Cert CertConfig `yaml:"cert"`
}

Jump to

Keyboard shortcuts

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