x509

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:24 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPoolAppendCertsFromPEM

func CertPoolAppendCertsFromPEM(s *x509.CertPool, pemCerts []byte) bool

func CertPoolSubjects

func CertPoolSubjects(s *x509.CertPool) [][]byte

func CertificateCheckCRLSignature

func CertificateCheckCRLSignature(c *x509.Certificate, crl *pkix.CertificateList) error

func CertificateCheckSignature

func CertificateCheckSignature(c *x509.Certificate, algo x509.SignatureAlgorithm, signed, signature []byte) error

func CertificateCheckSignatureFrom

func CertificateCheckSignatureFrom(c *x509.Certificate, parent *x509.Certificate) error

func CertificateCreateCRL

func CertificateCreateCRL(c *x509.Certificate, rand io.Reader, priv interface{}, revokedCerts []pkix.RevokedCertificate, now, expiry time.Time) ([]byte, error)

func CertificateEqual

func CertificateEqual(c *x509.Certificate, other *x509.Certificate) bool

func CertificateInvalidErrorError

func CertificateInvalidErrorError(e x509.CertificateInvalidError) string

func CertificateRequestCheckSignature

func CertificateRequestCheckSignature(c *x509.CertificateRequest) error

func CertificateVerify

func CertificateVerify(c *x509.Certificate, opts x509.VerifyOptions) ([][]*x509.Certificate, error)

func CertificateVerifyHostname

func CertificateVerifyHostname(c *x509.Certificate, h string) error

func ConstraintViolationErrorError

func ConstraintViolationErrorError(receiverV x509.ConstraintViolationError) string

func CreateCertificate

func CreateCertificate(rand io.Reader, template, parent *x509.Certificate, pub, priv interface{}) ([]byte, error)

func CreateCertificateRequest

func CreateCertificateRequest(rand io.Reader, template *x509.CertificateRequest, priv interface{}) ([]byte, error)

func DecryptPEMBlock

func DecryptPEMBlock(b *pem.Block, password []byte) ([]byte, error)

func EncryptPEMBlock

func EncryptPEMBlock(rand io.Reader, blockType string, data, password []byte, alg x509.PEMCipher) (*pem.Block, error)

func HostnameErrorError

func HostnameErrorError(h x509.HostnameError) string

func InsecureAlgorithmErrorError

func InsecureAlgorithmErrorError(e x509.InsecureAlgorithmError) string

func IsEncryptedPEMBlock

func IsEncryptedPEMBlock(b *pem.Block) bool

func MarshalECPrivateKey

func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error)

func MarshalPKIXPublicKey

func MarshalPKIXPublicKey(pub interface{}) ([]byte, error)

func NewCertPool

func NewCertPool() *x509.CertPool

func ParseCRL

func ParseCRL(crlBytes []byte) (*pkix.CertificateList, error)

func ParseCertificate

func ParseCertificate(asn1Data []byte) (*x509.Certificate, error)

func ParseCertificateRequest

func ParseCertificateRequest(asn1Data []byte) (*x509.CertificateRequest, error)

func ParseCertificates

func ParseCertificates(asn1Data []byte) ([]*x509.Certificate, error)

func ParseDERCRL

func ParseDERCRL(derBytes []byte) (*pkix.CertificateList, error)

func ParseECPrivateKey

func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error)

func ParsePKIXPublicKey

func ParsePKIXPublicKey(derBytes []byte) (interface{}, error)

func PublicKeyAlgorithmString

func PublicKeyAlgorithmString(algo x509.PublicKeyAlgorithm) string

func SignatureAlgorithmString

func SignatureAlgorithmString(algo x509.SignatureAlgorithm) string

func SystemCertPool

func SystemCertPool() (*x509.CertPool, error)

func SystemRootsErrorError

func SystemRootsErrorError(se x509.SystemRootsError) string

func UnhandledCriticalExtensionError

func UnhandledCriticalExtensionError(h x509.UnhandledCriticalExtension) string

func UnknownAuthorityErrorError

func UnknownAuthorityErrorError(e x509.UnknownAuthorityError) string

Types

This section is empty.

Directories

Path Synopsis
This file has automatically been generated on Wed Feb 26 15:50:25 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:25 +05 2020.

Jump to

Keyboard shortcuts

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