certgen

package module
v0.0.0-...-f9146c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: ISC Imports: 15 Imported by: 4

README

Certgen

Build Status ISC License Doc

Overview

This package contains functions for creating self-signed TLS certificate from random new key pairs, typically used for encrypting RPC and websocket communications.

ECDSA certificates are supported on all Go versions. Beginning with Go 1.13, this package additionally includes support for Ed25519 certificates.

Installation and Updating

This package is part of the github.com/EXCCoin/exccd/certgen module. Use the standard go tooling for working with modules to incorporate it.

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.

This package contains functions for creating self-signed TLS certificate from random new key pairs, typically used for encrypting RPC and websocket communications.

ECDSA certificates are supported on all Go versions. Beginning with Go 1.13, this package additionally includes support for Ed25519 certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEd25519TLSCertPair

func NewEd25519TLSCertPair(organization string, validUntil time.Time, extraHosts []string) (cert, key []byte, err error)

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

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 with new ECDSA keys. 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