certgen

package module
v1.0.1-0...-c391393 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: ISC Imports: 14 Imported by: 0

README

Certgen

Build Status ISC License GoDoc

Overview

This package currently contains a single function for creating a new TLS certificate key pair, typically used for encrypting RPC and websocket communications.

Installation and Updating

$ go get -u github.com/pinqy520/dcrd/certgen

License

Package certgen is licensed under the copyfree ISC License.

Documentation

Overview

Package certgen includes a common base for creating a new TLS certificate key pair.

Overview

This package currently contains a single function for creating a new TLS certificate key pair, typically used for encrypting RPC and websocket communications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSCertPair

func NewTLSCertPair(curve elliptic.Curve, organization string, validUntil time.Time, extraHosts []string) (cert, key []byte, err error)

NewTLSCertPair returns a new PEM-encoded x.509 certificate pair. The machine's local interface addresses and all variants of IPv4 and IPv6 localhost are included as valid IP addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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