OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
asn1crypto
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
209 bytes
01/24/2017 02:23:55 PM
rw-r--r--
📁
__pycache__
-
10/21/2019 03:49:46 PM
rwxr-xr-x
📄
_elliptic_curve.py
9.2 KB
11/07/2017 09:32:35 PM
rw-r--r--
📄
_errors.py
967 bytes
08/04/2017 02:19:33 PM
rw-r--r--
📄
_ffi.py
738 bytes
07/15/2016 01:53:18 AM
rw-r--r--
📄
_inet.py
4.55 KB
11/07/2017 09:09:57 PM
rw-r--r--
📄
_int.py
4.51 KB
01/23/2017 04:49:03 PM
rw-r--r--
📄
_iri.py
8.43 KB
03/03/2017 11:10:52 AM
rw-r--r--
📄
_ordereddict.py
4.43 KB
10/08/2015 01:39:26 PM
rw-r--r--
📁
_perf
-
10/21/2019 03:49:46 PM
rwxr-xr-x
📄
_teletex_codec.py
4.93 KB
10/08/2015 01:39:30 PM
rw-r--r--
📄
_types.py
939 bytes
02/01/2017 12:20:37 PM
rw-r--r--
📄
algos.py
33.3 KB
11/22/2017 04:10:10 PM
rw-r--r--
📄
cms.py
24.53 KB
11/20/2017 12:22:36 PM
rw-r--r--
📄
core.py
153.57 KB
11/21/2017 05:02:30 PM
rw-r--r--
📄
crl.py
15.73 KB
09/15/2017 10:48:38 AM
rw-r--r--
📄
csr.py
2.09 KB
09/15/2017 10:48:44 AM
rw-r--r--
📄
keys.py
34.36 KB
11/22/2017 04:15:11 PM
rw-r--r--
📄
ocsp.py
17.38 KB
09/15/2017 10:49:11 AM
rw-r--r--
📄
parser.py
8.93 KB
08/04/2017 02:19:37 PM
rw-r--r--
📄
pdf.py
2.2 KB
09/15/2017 10:49:21 AM
rw-r--r--
📄
pem.py
6 KB
11/28/2017 04:18:08 PM
rw-r--r--
📄
pkcs12.py
4.46 KB
09/15/2017 10:49:30 AM
rw-r--r--
📄
tsp.py
7.64 KB
09/15/2017 10:49:49 AM
rw-r--r--
📄
util.py
17.62 KB
02/01/2017 12:20:37 PM
rw-r--r--
📄
version.py
154 bytes
12/14/2017 09:01:31 PM
rw-r--r--
📄
x509.py
90.14 KB
12/14/2017 09:01:31 PM
rw-r--r--
Editing: csr.py
Close
# 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, {'implicit': 0, 'optional': True}), ] class CertificationRequest(Sequence): _fields = [ ('certification_request_info', CertificationRequestInfo), ('signature_algorithm', SignedDigestAlgorithm), ('signature', OctetBitString), ]