certsign

package
v0.0.0-...-7193f2d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Certificate x509.Certificate

	Private *pem.Block
	Public  *pem.Block

	PrivateBytes []byte
	PublicBytes  []byte
}

Cert structure

func GenerateClient

func GenerateClient(fields pkix.Name, signCA *Cert, hosts []string) (*Cert, error)

GenerateClient generates an client certificate, returns cert

func GenerateIntermediate

func GenerateIntermediate(fields pkix.Name, signCA *Cert) (*Cert, error)

GenerateIntermediate generates an intermediate certificate, returns cert

func GenerateRoot

func GenerateRoot(fields pkix.Name) (*Cert, error)

GenerateRoot generates a root certificate, returns cert

func GenerateServer

func GenerateServer(fields pkix.Name, signCA *Cert, hosts []string) (*Cert, error)

GenerateServer generates an server certificate, returns cert

Jump to

Keyboard shortcuts

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