reigntls

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(opt Options) ([]byte, *ecdsa.PrivateKey, error)

CreateCertificate takes the given options and returns the der bytes for a certificate using those options.

Types

type Options

type Options struct {
	Host               string
	Organization       string
	IsCA               bool
	SignWithCert       *x509.Certificate
	SignWithPrivateKey *ecdsa.PrivateKey
	ValidDuration      time.Duration
	ValidFrom          time.Time
	Addresses          []string
	CommonName         string
}

Jump to

Keyboard shortcuts

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