Documentation
¶
Overview ¶
Package containers provides en: a set of constants and functions for working with PEM and DER packaging formats ru: набор констант и функции работы с PEM и DER форматами упаковки
Index ¶
Constants ¶
const ( Certificate = "CERTIFICATE" PrivateKey = "PRIVATE KEY" Default = "PKCS7" CMS = "CMS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DER ¶
type DER []byte
DER (Distinguished Encoding Rules) is a binary encoding for X.509 certificates and private keys. Unlike PEM, DER-encoded files do not contain plain text statements such as -----BEGIN CERTIFICATE-----. DER files are most commonly seen in Java contexts. DER-encoded files are usually found with the extensions .der and .cer.
type PEM ¶
type PEM []byte
PEM (originally “Privacy Enhanced Mail”) is the most common format for X.509 certificates, CSRs, and cryptographic keys. A PEM file is a text file containing one or more items in Base64 ASCII encoding, each with plain-text headers and footers (e.g. -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----). A single PEM file could contain an end-entity certificate, a private key, or multiple certificates forming a complete chain of trust. PEM files are usually seen with the extensions .crt, .pem, .cer, and .key (for private keys), but you may also see them with different extensions. For example, the SSL.com CA bundle file available from the download table in a certificate order has the extension .ca-bundle.
type TrailingDataError ¶
type TrailingDataError struct { }
TrailingDataError en: error - trailing data ru: ошибка - лишние данные
func (*TrailingDataError) Error ¶
func (e *TrailingDataError) Error() string
Error en: error text formation ru: формирование текста ошибки
func (*TrailingDataError) Is ¶
func (e *TrailingDataError) Is(target error) bool
Is en: compare with target error ru: сравнение с другой ошибкой
Directories
¶
Path | Synopsis |
---|---|
Package certificate provides en: structure of the Container representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления Container в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN.
|
Package certificate provides en: structure of the Container representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления Container в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN. |
tbs-certificate
Package tbscertificate provides en: structure of the Container representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления Container в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN.
|
Package tbscertificate provides en: structure of the Container representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления Container в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN. |
tbs-certificate/public-key-info
Package publickeyinfo provides en: structure of the public key representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления публичного ключа в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN.
|
Package publickeyinfo provides en: structure of the public key representation in the asn.1, methods for this structure and the decoding function from DER ru: структуру представления публичного ключа в asn.1, методы для этой структуры и функцию декодирования из DER asn.1 - Abstract Syntax Notation One (ASN. |