cert

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion added in v0.1.0

type APIVersion string
const (
	APIVersionV1 APIVersion = "v1"
)

type CSR

type CSR struct {
	PrivateKey []byte
	Request    []byte
}

func CreateCSR

func CreateCSR(cfg *CSRConfig) (CSR, error)

type CSRConfig added in v0.1.0

type CSRConfig struct {
	APIVersion   APIVersion `json:"apiVersion"`
	CommonName   string     `json:"commonName"`
	Organization string     `json:"organization"`
	Country      string     `json:"country"`
	Province     string     `json:"province"`
	Locality     string     `json:"locality"`
}

Jump to

Keyboard shortcuts

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