tlsutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCert

func DecodeCert(pemCert []byte) (*x509.Certificate, error)

DecodeCert return the decoded certificate of given encodedCert

func DecodeCertRequest

func DecodeCertRequest(encodedCertRequest []byte) (*x509.CertificateRequest, error)

DecodeCert return the decoded csr of given encodedCertRequest

func DecodeKey

func DecodeKey(encodedKey []byte) (*rsa.PrivateKey, error)

DecodeKey returns the decoded private key of given encodedKey

func EncodeCert

func EncodeCert(cert *x509.Certificate) []byte

EncodeCert returns PEM encoding of given cert

func EncodeKey

func EncodeKey(key *rsa.PrivateKey) []byte

EncodeKey returns PEM encoding of give private key

func EncodePublicKey

func EncodePublicKey(key interface{}) ([]byte, error)

EncodePublicKey returns PEM encoding of given public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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