utils

package
v0.0.0-...-23a0380 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Overview

Package utils provides utility functions

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