selfsign

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 12 Imported by: 17

Documentation

Overview

Package selfsign is a test helper that generates self signed certificate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSigned

func GenerateSelfSigned() (tls.Certificate, error)

GenerateSelfSigned creates a self-signed certificate

func GenerateSelfSignedWithDNS

func GenerateSelfSignedWithDNS(cn string, sans ...string) (tls.Certificate, error)

GenerateSelfSignedWithDNS creates a self-signed certificate

func SelfSign

func SelfSign(key crypto.PrivateKey) (tls.Certificate, error)

SelfSign creates a self-signed certificate from a elliptic curve key

func WithDNS

func WithDNS(key crypto.PrivateKey, cn string, sans ...string) (tls.Certificate, error)

WithDNS creates a self-signed certificate from a elliptic curve key

Types

This section is empty.

Jump to

Keyboard shortcuts

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