csr

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 10 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, signingCert *x509.Certificate, publicKey interface{}, signingKey crypto.PrivateKey,
	ttl 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 time.Duration) (*x509.Certificate, error)

func GenerateRootCertCSR

func GenerateRootCertCSR(org, cn string, publicKey interface{}, ttl 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