3.1 crypto -- Generic cryptographic module
- X509Type
-
A Python type object representing the X509 object type.
- X509()
-
Factory function that creates an X509 object.
- X509NameType
-
A Python type object representing the X509Name object type.
- X509Name(x509name)
-
Factory function that creates a copy of x509name.
- X509ReqType
-
A Python type object representing the X509Req object type.
- X509Req()
-
Factory function that creates an X509Req object.
- X509StoreType
-
A Python type object representing the X509Store object type.
- PKeyType
-
A Python type object representing the PKey object type.
- PKey()
-
Factory function that creates a PKey object.
- PKCS7Type
-
A Python type object representing the PKCS7 object type.
- PKCS12Type
-
A Python type object representing the PKCS12 object type.
- X509ExtensionType
-
A Python type object representing the X509Extension object type.
- X509Extension(typename, critical, value)
-
Factory function that creates a X509Extension object.
- FILETYPE_PEM
-
- FILETYPE_ASN1
-
File type constants.
- TYPE_RSA
-
- TYPE_DSA
-
Key type constants.
- exception Error
-
Generic exception used in the crypto module.
- dump_certificate(type, cert)
-
Dump the certificate cert into a buffer string encoded with the type
type.
- dump_certificate_request(type, req)
-
Dump the certificate request req into a buffer string encoded with the
type type.
- dump_privatekey(type, pkey[, cipher, passphrase])
-
Dump the private key pkey into a buffer string encoded with the type
type, optionally (if type is FILETYPE_PEM) encrypting it
using cipher and passphrase.
- load_certificate(type, buffer)
-
Load a certificate (X509) from the string buffer encoded with the
type type.
- load_certificate_request(type, buffer)
-
Load a certificate request (X509Req) from the string buffer encoded with
the type type.
- load_privatekey(type, buffer[, passphrase])
-
Load a private key (PKey) from the string buffer encoded with
the type type (must be one of FILETYPE_PEM and
FILETYPE_ASN1).
- load_pkcs7_data(type, buffer)
-
Load pkcs7 data from the string buffer encoded with the type type.
- load_pkcs12(buffer[, passphrase])
-
Load pkcs12 data from the string buffer. If the pkcs12 structure is
encrypted, a passphrase must be included.
Subsections