pki

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const YunikornOrg = "yunikorn.apache.org"

Variables

This section is empty.

Functions

func DecodeCertChainPem

func DecodeCertChainPem(certsPem *[]byte) ([]*x509.Certificate, error)

func DecodeCertificatePem

func DecodeCertificatePem(certPem *[]byte) (*x509.Certificate, error)

func DecodePrivateKeyPem

func DecodePrivateKeyPem(privateKeyPem *[]byte) (*rsa.PrivateKey, error)

func EncodeCertChainPem

func EncodeCertChainPem(certs []*x509.Certificate) (*[]byte, error)

func EncodeCertificatePem

func EncodeCertificatePem(cert *x509.Certificate) (*[]byte, error)

func EncodePrivateKeyPem

func EncodePrivateKeyPem(privateKey *rsa.PrivateKey) (*[]byte, error)

func GenerateCACertificate

func GenerateCACertificate(notAfter time.Time) (*x509.Certificate, *rsa.PrivateKey, error)

func GenerateServerCertificate

func GenerateServerCertificate(cn string, dnsNames []string, signer *x509.Certificate, signerKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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