tls

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey(algorithm string) (interface{}, []byte, error)

Create a private key based on the env variables. Default: 2048 bit.

func SignatureAlgorithm

func SignatureAlgorithm(algorithm string) x509.SignatureAlgorithm

SignatureAlgorithm returns a x506 signature algorithm based on the env variables. Default: SHA256WithRSA

Types

type X509CSR

type X509CSR struct {
	PrivateKey    interface{}
	PrivateKeyPEM []byte
	CSR           []byte
}

func CreateX509CSR

func CreateX509CSR(config *cfg.Config) (*X509CSR, error)

CreateX509CSR creates a certificate signing request based on a configuration.

Jump to

Keyboard shortcuts

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