Documentation ¶
Overview ¶
This file has automatically been generated on Wed Feb 26 15:50:24 +05 2020. DO NOT EDIT.
Index ¶
- func CertPoolAppendCertsFromPEM(s *x509.CertPool, pemCerts []byte) bool
- func CertPoolSubjects(s *x509.CertPool) [][]byte
- func CertificateCheckCRLSignature(c *x509.Certificate, crl *pkix.CertificateList) error
- func CertificateCheckSignature(c *x509.Certificate, algo x509.SignatureAlgorithm, signed, signature []byte) error
- func CertificateCheckSignatureFrom(c *x509.Certificate, parent *x509.Certificate) error
- func CertificateCreateCRL(c *x509.Certificate, rand io.Reader, priv interface{}, ...) ([]byte, error)
- func CertificateEqual(c *x509.Certificate, other *x509.Certificate) bool
- func CertificateInvalidErrorError(e x509.CertificateInvalidError) string
- func CertificateRequestCheckSignature(c *x509.CertificateRequest) error
- func CertificateVerify(c *x509.Certificate, opts x509.VerifyOptions) ([][]*x509.Certificate, error)
- func CertificateVerifyHostname(c *x509.Certificate, h string) error
- func ConstraintViolationErrorError(receiverV x509.ConstraintViolationError) string
- func CreateCertificate(rand io.Reader, template, parent *x509.Certificate, pub, priv interface{}) ([]byte, error)
- func CreateCertificateRequest(rand io.Reader, template *x509.CertificateRequest, priv interface{}) ([]byte, error)
- func DecryptPEMBlock(b *pem.Block, password []byte) ([]byte, error)
- func EncryptPEMBlock(rand io.Reader, blockType string, data, password []byte, alg x509.PEMCipher) (*pem.Block, error)
- func HostnameErrorError(h x509.HostnameError) string
- func InsecureAlgorithmErrorError(e x509.InsecureAlgorithmError) string
- func IsEncryptedPEMBlock(b *pem.Block) bool
- func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error)
- func MarshalPKIXPublicKey(pub interface{}) ([]byte, error)
- func NewCertPool() *x509.CertPool
- func ParseCRL(crlBytes []byte) (*pkix.CertificateList, error)
- func ParseCertificate(asn1Data []byte) (*x509.Certificate, error)
- func ParseCertificateRequest(asn1Data []byte) (*x509.CertificateRequest, error)
- func ParseCertificates(asn1Data []byte) ([]*x509.Certificate, error)
- func ParseDERCRL(derBytes []byte) (*pkix.CertificateList, error)
- func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error)
- func ParsePKIXPublicKey(derBytes []byte) (interface{}, error)
- func PublicKeyAlgorithmString(algo x509.PublicKeyAlgorithm) string
- func SignatureAlgorithmString(algo x509.SignatureAlgorithm) string
- func SystemCertPool() (*x509.CertPool, error)
- func SystemRootsErrorError(se x509.SystemRootsError) string
- func UnhandledCriticalExtensionError(h x509.UnhandledCriticalExtension) string
- func UnknownAuthorityErrorError(e x509.UnknownAuthorityError) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertPoolSubjects ¶
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 EncryptPEMBlock ¶
func HostnameErrorError ¶
func HostnameErrorError(h x509.HostnameError) string
func InsecureAlgorithmErrorError ¶
func InsecureAlgorithmErrorError(e x509.InsecureAlgorithmError) string
func IsEncryptedPEMBlock ¶
func MarshalECPrivateKey ¶
func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error)
func MarshalPKIXPublicKey ¶
func NewCertPool ¶
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 PublicKeyAlgorithmString ¶
func PublicKeyAlgorithmString(algo x509.PublicKeyAlgorithm) string
func SignatureAlgorithmString ¶
func SignatureAlgorithmString(algo x509.SignatureAlgorithm) string
func SystemCertPool ¶
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.
Click to show internal directories.
Click to hide internal directories.