utils

package
v0.0.0-...-8549c98 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificates

func GenerateCertificates(config *CertificatesConfig) error

GenerateCertificates create a self-signed certificate with a private key according the config in parameter

Types

type CertificatesConfig

type CertificatesConfig struct {
	Hosts        string
	ValidFor     time.Duration
	RsaBits      int
	EcdsaCurve   string
	CertFilePath string
	KeyFilePath  string
}

CertificatesConfig holds certificate configuration

Jump to

Keyboard shortcuts

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