afssl

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 4

README

afssl

self sign ssl

Documentation

Index

Constants

View Source
const (
	OneMouth    = 730 * time.Hour
	ThreeMouths = 3 * OneMouth
	OneYear     = 12 * OneMouth
	TenYears    = 10 * OneYear
)

Variables

This section is empty.

Functions

func GenerateSSL

func GenerateSSL(config Config) (caPEM []byte, caKeyPEM []byte, serverPEM []byte, serverKeyPEM []byte, clientPEM []byte, clientKeyPEM []byte, err error)

Types

type Config

type Config struct {
	KeyBits            int
	Country            string
	Province           string
	City               string
	Organization       string
	OrganizationalUnit string
	CommonName         string
	IPs                []string
	DelegationEnabled  bool
	Expiration         time.Duration
}

func (Config) Validate

func (config Config) Validate() (err error)

Jump to

Keyboard shortcuts

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