csr

package
v1.11.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCSR

func GenerateCSR(org string, pkcs8 bool) ([]byte, []byte, error)

GenerateCSR creates a X.509 certificate sign request and private key.

func GenerateCSRCertificate

func GenerateCSRCertificate(csr *x509.CertificateRequest, subject string, identityBundle *identity.Bundle, signingCert *x509.Certificate, publicKey interface{}, signingKey crypto.PrivateKey,
	ttl, skew time.Duration, isCA bool,
) ([]byte, error)

GenerateCSRCertificate returns an x509 Certificate from a CSR, signing cert, public key, signing private key and duration.

func GenerateIssuerCertCSR

func GenerateIssuerCertCSR(cn string, publicKey interface{}, ttl, skew time.Duration) (*x509.Certificate, error)

func GenerateRootCertCSR

func GenerateRootCertCSR(org, cn string, publicKey interface{}, ttl, skew time.Duration) (*x509.Certificate, error)

GenerateRootCertCSR returns a CA root cert x509 Certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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