Documentation ¶
Index ¶
- Constants
- func DecodeCertChainPem(certsPem *[]byte) ([]*x509.Certificate, error)
- func DecodeCertificatePem(certPem *[]byte) (*x509.Certificate, error)
- func DecodePrivateKeyPem(privateKeyPem *[]byte) (*rsa.PrivateKey, error)
- func EncodeCertChainPem(certs []*x509.Certificate) (*[]byte, error)
- func EncodeCertificatePem(cert *x509.Certificate) (*[]byte, error)
- func EncodePrivateKeyPem(privateKey *rsa.PrivateKey) (*[]byte, error)
- func GenerateCACertificate(notAfter time.Time) (*x509.Certificate, *rsa.PrivateKey, error)
- func GenerateServerCertificate(cn string, dnsNames []string, signer *x509.Certificate, ...) (*x509.Certificate, *rsa.PrivateKey, error)
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.
Click to show internal directories.
Click to hide internal directories.