tpp

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTPPRootCACertAndKey

func GenerateTPPRootCACertAndKey(url, zone, token string) (rootCert *x509.Certificate, pemRootCACert []byte, subCert *x509.Certificate, pemSubCACert []byte, rsaRootKey *rsa.PrivateKey, err error)

GenerateTPPRootCACertAndKey generates CA issuing cert and key using TPP

func TPPGenerateCertificateChainAndKey

func TPPGenerateCertificateChainAndKey(url, zone, token string, subject pkix.Name) (pemChain string, pemCertificate string, pemPrivateKey string, err error)

TPPGenerateCertificateChainAndKey generates a certificate using TPP

func TPPGetPolicy

func TPPGetPolicy(url, zone, token string) (defaultConfiguration *DefaultZoneConfiguration, restrictions *PolicyRegex, err error)

Types

type DefaultZoneConfiguration

type DefaultZoneConfiguration struct {
	Organization       string
	OrganizationalUnit []string
	Country            string
	Province           string
	Locality           string
}

DefaultZoneConfiguration provides the default values for certificate requests as defined by the TPP policy

type PolicyRegex

type PolicyRegex struct {
	CommonName         []string
	Organization       []string
	OrganizationalUnit []string
	Province           []string
	Locality           []string
	Country            []string
}

PolicyRegex provides the restrictions for certificates as defined by the TPP policy

Jump to

Keyboard shortcuts

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