X7ROOT File Manager
Current Path:
/opt/alt/python37/lib/python3.7/site-packages/asn1crypto
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
asn1crypto
/
📁
..
📄
__init__.py
(209 B)
📁
__pycache__
📄
_elliptic_curve.py
(9.19 KB)
📄
_errors.py
(967 B)
📄
_ffi.py
(738 B)
📄
_inet.py
(4.72 KB)
📄
_int.py
(4.51 KB)
📄
_iri.py
(8.43 KB)
📄
_ordereddict.py
(4.43 KB)
📁
_perf
📄
_teletex_codec.py
(4.93 KB)
📄
_types.py
(939 B)
📄
algos.py
(32.73 KB)
📄
cms.py
(24.96 KB)
📄
core.py
(146.88 KB)
📄
crl.py
(15.84 KB)
📄
csr.py
(2.11 KB)
📄
keys.py
(34.23 KB)
📄
ocsp.py
(17.58 KB)
📄
parser.py
(8.93 KB)
📄
pdf.py
(2.25 KB)
📄
pem.py
(5.98 KB)
📄
pkcs12.py
(4.53 KB)
📄
tsp.py
(7.88 KB)
📄
util.py
(17.62 KB)
📄
version.py
(154 B)
📄
x509.py
(81.32 KB)
Editing: csr.py
# coding: utf-8 """ ASN.1 type classes for certificate signing requests (CSR). Exports the following items: - CertificatationRequest() Other type classes are defined that help compose the types listed above. """ from __future__ import unicode_literals, division, absolute_import, print_function from .algos import SignedDigestAlgorithm from .core import ( Any, Integer, ObjectIdentifier, OctetBitString, Sequence, SetOf, ) from .keys import PublicKeyInfo from .x509 import DirectoryString, Extensions, Name # The structures in this file are taken from https://tools.ietf.org/html/rfc2986 # and https://tools.ietf.org/html/rfc2985 class Version(Integer): _map = { 0: 'v1', } class CSRAttributeType(ObjectIdentifier): _map = { '1.2.840.113549.1.9.7': 'challenge_password', '1.2.840.113549.1.9.9': 'extended_certificate_attributes', '1.2.840.113549.1.9.14': 'extension_request', } class SetOfDirectoryString(SetOf): _child_spec = DirectoryString class Attribute(Sequence): _fields = [ ('type', ObjectIdentifier), ('values', SetOf, {'spec': Any}), ] class SetOfAttributes(SetOf): _child_spec = Attribute class SetOfExtensions(SetOf): _child_spec = Extensions class CRIAttribute(Sequence): _fields = [ ('type', CSRAttributeType), ('values', Any), ] _oid_pair = ('type', 'values') _oid_specs = { 'challenge_password': SetOfDirectoryString, 'extended_certificate_attributes': SetOfAttributes, 'extension_request': SetOfExtensions, } class CRIAttributes(SetOf): _child_spec = CRIAttribute class CertificationRequestInfo(Sequence): _fields = [ ('version', Version), ('subject', Name), ('subject_pk_info', PublicKeyInfo), ('attributes', CRIAttributes, {'tag_type': 'implicit', 'tag': 0, 'optional': True}), ] class CertificationRequest(Sequence): _fields = [ ('certification_request_info', CertificationRequestInfo), ('signature_algorithm', SignedDigestAlgorithm), ('signature', OctetBitString), ]
Upload File
Create Folder