scapy.layers.x509

X.509 certificates.

class scapy.layers.x509.ASN1F_EXT_SEQUENCE(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

dissect(pkt, s)[source]
class scapy.layers.x509.ASN1F_OCSP_BasicResponse(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

build(pkt)[source]
dissect(pkt, s)[source]
m2i(pkt, x)[source]
class scapy.layers.x509.ASN1F_OCSP_BasicResponseECDSA(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_CRL(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

build(pkt)[source]
dissect(pkt, s)[source]
m2i(pkt, x)[source]
class scapy.layers.x509.ASN1F_X509_CRLECDSA(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_Cert(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

build(pkt)[source]
dissect(pkt, s)[source]
m2i(pkt, x)[source]
class scapy.layers.x509.ASN1F_X509_CertECDSA(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_DirectoryString(name, default, **kwargs)[source]

Bases: scapy.asn1fields.ASN1F_CHOICE

class scapy.layers.x509.ASN1F_X509_SubjectPublicKeyInfo(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

build(pkt)[source]
dissect(pkt, s)[source]
m2i(pkt, x)[source]
class scapy.layers.x509.ASN1F_X509_SubjectPublicKeyInfoECDSA(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_SubjectPublicKeyInfoRSA(**kargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1P_INTEGER(_pkt, /, *, number=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_INTEGER object>
aliastypes
fields_desc
ASN1P_INTEGER fields

number

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.ASN1P_OID(_pkt, /, *, oid=<ASN1_OID['.0']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_OID object>
aliastypes
fields_desc
ASN1P_OID fields

oid

ASN1F_OID

<ASN1_OID['.0']>

class scapy.layers.x509.ASN1P_PRIVSEQ(_pkt, /, *, str=<ASN1_IA5_STRING['']>, int=<ASN1_STRING[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_IA5_STRING object>, <scapy.asn1fields.ASN1F_STRING object>)>
aliastypes
fields_desc
ASN1P_PRIVSEQ fields

str

ASN1F_IA5_STRING

<ASN1_IA5_STRING['']>

int

ASN1F_STRING

<ASN1_STRING[0]>

class scapy.layers.x509.ECCurve(_pkt, /, *, a=<ASN1_STRING['']>, b=<ASN1_STRING['']>, seed=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
ECCurve fields

a

ASN1F_STRING

<ASN1_STRING['']>

b

ASN1F_STRING

<ASN1_STRING['']>

seed

ASN1F_BIT_STRING

None

class scapy.layers.x509.ECDSAPrivateKey(_pkt, /, *, version=0x1 <ASN1_INTEGER[1]>, privateKey=<ASN1_STRING['']>, parameters=None, publicKey=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_enum_INTEGER object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
ECDSAPrivateKey fields

version

ASN1F_enum_INTEGER

0x1 <ASN1_INTEGER[1]>

privateKey

ASN1F_STRING

<ASN1_STRING['']>

parameters

ASN1F_PACKET

None

publicKey

ASN1F_PACKET

None

class scapy.layers.x509.ECDSAPrivateKey_OpenSSL(_pkt, /, *, ecparam=<ECParameters  |>, privateKey=<ECDSAPrivateKey  |>)[source]

Bases: scapy.packet.Packet

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ECPARAM            |           PRIVATEKEY          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. ECDSAPrivateKey_OpenSSL                   
ECDSAPrivateKey_OpenSSL fields

ecparam

_PacketFieldRaw

<ECParameters  |>

privateKey

PacketField

<ECDSAPrivateKey  |>

class scapy.layers.x509.ECDSAPublicKey(_pkt, /, *, ecPoint=<ASN1_BIT_STRING[]=b'' (0 unused bit)>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_BIT_STRING object>
aliastypes
fields_desc
ECDSAPublicKey fields

ecPoint

ASN1F_BIT_STRING

<ASN1_BIT_STRING[]=b'' (0 unused bit)>

class scapy.layers.x509.ECDSASignature(_pkt, /, *, r=0x0 <ASN1_INTEGER[0]>, s=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>)>
aliastypes
fields_desc
ECDSASignature fields

r

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

s

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.ECFieldID(_pkt, /, *, fieldType=<ASN1_OID['prime-field']>, prime=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_INTEGER object>)>
aliastypes
fields_desc
ECFieldID fields

fieldType

ASN1F_OID

<ASN1_OID['prime-field']>

prime

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.ECParameters(_pkt, /, *, curve=<ASN1_OID['ansip384r1']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
ECParameters fields

curve

ASN1F_CHOICE

<ASN1_OID['ansip384r1']>

class scapy.layers.x509.ECSpecifiedDomain(_pkt, /, *, version=0x1 <ASN1_INTEGER[1]>, fieldID=<ECFieldID  |>, curve=<ECCurve  |>, base=<ASN1_STRING['']>, order=0x0 <ASN1_INTEGER[0]>, cofactor=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_enum_INTEGER object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
ECSpecifiedDomain fields

version

ASN1F_enum_INTEGER

0x1 <ASN1_INTEGER[1]>

fieldID

ASN1F_PACKET

<ECFieldID  |>

curve

ASN1F_PACKET

<ECCurve  |>

base

ASN1F_STRING

<ASN1_STRING['']>

order

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

cofactor

ASN1F_INTEGER

None

class scapy.layers.x509.OCSP_ByKey(_pkt, /, *, byKey=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
OCSP_ByKey fields

byKey

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.x509.OCSP_ByName(_pkt, /, *, byName=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF byName>
aliastypes
fields_desc
OCSP_ByName fields

byName

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.OCSP_CertID(_pkt, /, *, hashAlgorithm=<X509_AlgorithmIdentifier  |>, issuerNameHash=<ASN1_STRING['']>, issuerKeyHash=<ASN1_STRING['']>, serialNumber=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_INTEGER object>)>
aliastypes
fields_desc
OCSP_CertID fields

hashAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

issuerNameHash

ASN1F_STRING

<ASN1_STRING['']>

issuerKeyHash

ASN1F_STRING

<ASN1_STRING['']>

serialNumber

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.OCSP_CertStatus(_pkt, /, *, certStatus=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
OCSP_CertStatus fields

certStatus

ASN1F_CHOICE

None

class scapy.layers.x509.OCSP_GoodInfo(_pkt, /, *, info=<ASN1_NULL[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_NULL object>
aliastypes
fields_desc
OCSP_GoodInfo fields

info

ASN1F_NULL

<ASN1_NULL[0]>

class scapy.layers.x509.OCSP_ResponderID(_pkt, /, *, responderID=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
OCSP_ResponderID fields

responderID

ASN1F_CHOICE

None

class scapy.layers.x509.OCSP_Response(_pkt, /, *, responseStatus=0x0 <ASN1_ENUMERATED[0]>, responseBytes=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_ENUMERATED object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
OCSP_Response fields

responseStatus

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

responseBytes

ASN1F_PACKET

None

class scapy.layers.x509.OCSP_ResponseBytes(_pkt, /, *, responseType=<ASN1_OID['basic-response']>, tbsResponseData=<OCSP_ResponseData  responderID=<OCSP_ResponderID  |> |>, signatureAlgorithm=<X509_AlgorithmIdentifier  |>, signature=<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>, certs=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <ASN1F_OCSP_BasicResponse(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_BIT_STRING object>, <scapy.asn1fields.ASN1F_optional object>)>)>
aliastypes
fields_desc
OCSP_ResponseBytes fields

responseType

ASN1F_OID

<ASN1_OID['basic-response']>

tbsResponseData

ASN1F_PACKET

<OCSP_ResponseData  responderID=<OCSP_ResponderID  |> |>

signatureAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

signature

ASN1F_BIT_STRING

<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>

certs

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.OCSP_ResponseData(_pkt, /, *, version=0x0 <ASN1_INTEGER[0]>, responderID=<OCSP_ResponderID  |>, producedAt=2021-12-03 16:46:37 UTC <ASN1_GENERALIZED_TIME['20211203164637Z']>, responses=[], responseExtensions=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_GENERALIZED_TIME object>, <ASN1F_SEQUENCE_OF responses>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
OCSP_ResponseData fields

version

ASN1F_enum_INTEGER

0x0 <ASN1_INTEGER[0]>

responderID

ASN1F_PACKET

<OCSP_ResponderID  |>

producedAt

ASN1F_GENERALIZED_TIME

2021-12-03 16:46:37 UTC <ASN1_GENERALIZED_TIME['20211203164637Z']>

responses

ASN1F_SEQUENCE_OF

[]

responseExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.OCSP_RevokedInfo(_pkt, /, *, revocationTime= [invalid generalized time] <ASN1_GENERALIZED_TIME['']>, revocationReason=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_GENERALIZED_TIME object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
OCSP_RevokedInfo fields

revocationTime

ASN1F_GENERALIZED_TIME

`` [invalid generalized time] <ASN1_GENERALIZED_TIME[‘’]>``

revocationReason

ASN1F_PACKET

None

class scapy.layers.x509.OCSP_SingleResponse(_pkt, /, *, certID=<OCSP_CertID  hashAlgorithm=<X509_AlgorithmIdentifier  |> |>, certStatus=<OCSP_CertStatus  |>, thisUpdate= [invalid generalized time] <ASN1_GENERALIZED_TIME['']>, nextUpdate= [invalid generalized time] <ASN1_GENERALIZED_TIME['']>, singleExtensions=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_GENERALIZED_TIME object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
OCSP_SingleResponse fields

certID

ASN1F_PACKET

<OCSP_CertID  hashAlgorithm=<X509_AlgorithmIdentifier  |> |>

certStatus

ASN1F_PACKET

<OCSP_CertStatus  |>

thisUpdate

ASN1F_GENERALIZED_TIME

`` [invalid generalized time] <ASN1_GENERALIZED_TIME[‘’]>``

nextUpdate

ASN1F_GENERALIZED_TIME

`` [invalid generalized time] <ASN1_GENERALIZED_TIME[‘’]>``

singleExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.OCSP_UnknownInfo(_pkt, /, *, info=<ASN1_NULL[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_NULL object>
aliastypes
fields_desc
OCSP_UnknownInfo fields

info

ASN1F_NULL

<ASN1_NULL[0]>

class scapy.layers.x509.RSAOtherPrimeInfo(_pkt, /, *, prime=0x0 <ASN1_INTEGER[0]>, exponent=0x0 <ASN1_INTEGER[0]>, coefficient=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>)>
aliastypes
fields_desc
RSAOtherPrimeInfo fields

prime

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

exponent

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

coefficient

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.RSAPrivateKey(_pkt, /, *, version=0x0 <ASN1_INTEGER[0]>, modulus=0xa <ASN1_INTEGER[10]>, publicExponent=0x3 <ASN1_INTEGER[3]>, privateExponent=0x3 <ASN1_INTEGER[3]>, prime1=0x2 <ASN1_INTEGER[2]>, prime2=0x5 <ASN1_INTEGER[5]>, exponent1=0x0 <ASN1_INTEGER[0]>, exponent2=0x3 <ASN1_INTEGER[3]>, coefficient=0x1 <ASN1_INTEGER[1]>, otherPrimeInfos=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_enum_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
RSAPrivateKey fields

version

ASN1F_enum_INTEGER

0x0 <ASN1_INTEGER[0]>

modulus

ASN1F_INTEGER

0xa <ASN1_INTEGER[10]>

publicExponent

ASN1F_INTEGER

0x3 <ASN1_INTEGER[3]>

privateExponent

ASN1F_INTEGER

0x3 <ASN1_INTEGER[3]>

prime1

ASN1F_INTEGER

0x2 <ASN1_INTEGER[2]>

prime2

ASN1F_INTEGER

0x5 <ASN1_INTEGER[5]>

exponent1

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

exponent2

ASN1F_INTEGER

0x3 <ASN1_INTEGER[3]>

coefficient

ASN1F_INTEGER

0x1 <ASN1_INTEGER[1]>

otherPrimeInfos

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.RSAPrivateKey_OpenSSL(_pkt, /, *, version=0x0 <ASN1_INTEGER[0]>, privateKeyAlgorithm=<X509_AlgorithmIdentifier  |>, privateKey=<RSAPrivateKey  |>, parameters=None, publicKey=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_enum_INTEGER object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
RSAPrivateKey_OpenSSL fields

version

ASN1F_enum_INTEGER

0x0 <ASN1_INTEGER[0]>

privateKeyAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

privateKey

ASN1F_PACKET

<RSAPrivateKey  |>

parameters

ASN1F_PACKET

None

publicKey

ASN1F_PACKET

None

class scapy.layers.x509.RSAPublicKey(_pkt, /, *, modulus=0xa <ASN1_INTEGER[10]>, publicExponent=0x3 <ASN1_INTEGER[3]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>)>
aliastypes
fields_desc
RSAPublicKey fields

modulus

ASN1F_INTEGER

0xa <ASN1_INTEGER[10]>

publicExponent

ASN1F_INTEGER

0x3 <ASN1_INTEGER[3]>

class scapy.layers.x509.X509_AccessDescription(_pkt, /, *, accessMethod=<ASN1_OID['.0']>, accessLocation=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_PACKET object>)>
aliastypes
fields_desc
X509_AccessDescription fields

accessMethod

ASN1F_OID

<ASN1_OID['.0']>

accessLocation

ASN1F_PACKET

<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>

class scapy.layers.x509.X509_AlgorithmIdentifier(_pkt, /, *, algorithm=<ASN1_OID['sha256WithRSAEncryption']>, parameters=<ASN1_NULL[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_AlgorithmIdentifier fields

algorithm

ASN1F_OID

<ASN1_OID['sha256WithRSAEncryption']>

parameters

ASN1F_CHOICE

<ASN1_NULL[0]>

class scapy.layers.x509.X509_Attribute(_pkt, /, *, type=<ASN1_OID['countryName']>, values=[<X509_AttributeValue  |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <ASN1F_SET_OF values>)>
aliastypes
fields_desc
X509_Attribute fields

type

ASN1F_OID

<ASN1_OID['countryName']>

values

ASN1F_SET_OF

[<X509_AttributeValue  |>]

class scapy.layers.x509.X509_AttributeTypeAndValue(_pkt, /, *, type=<ASN1_OID['countryName']>, value=<ASN1_PRINTABLE_STRING['FR']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.layers.x509.ASN1F_X509_DirectoryString object>)>
aliastypes
fields_desc
X509_AttributeTypeAndValue fields

type

ASN1F_OID

<ASN1_OID['countryName']>

value

ASN1F_X509_DirectoryString

<ASN1_PRINTABLE_STRING['FR']>

class scapy.layers.x509.X509_AttributeValue(_pkt, /, *, value=<ASN1_PRINTABLE_STRING['FR']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
X509_AttributeValue fields

value

ASN1F_CHOICE

<ASN1_PRINTABLE_STRING['FR']>

class scapy.layers.x509.X509_CRL(_pkt, /, *, tbsCertList=<X509_TBSCertList  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] |>, signatureAlgorithm=<X509_AlgorithmIdentifier  |>, signatureValue=<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_X509_CRL(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_BIT_STRING object>)>
aliastypes
fields_desc
X509_CRL fields

tbsCertList

ASN1F_PACKET

<X509_TBSCertList  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] |>

signatureAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

signatureValue

ASN1F_BIT_STRING

<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>

class scapy.layers.x509.X509_Cert(_pkt, /, *, tbsCertificate=<X509_TBSCertificate  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity  |> subject=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>] subjectPublicKeyInfo=<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |> extensions=[<X509_Extension  extnValue=<X509_ExtBasicConstraints  |> |>] |>, signatureAlgorithm=<X509_AlgorithmIdentifier  |>, signatureValue=<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_X509_Cert(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_BIT_STRING object>)>
aliastypes
fields_desc
X509_Cert fields

tbsCertificate

ASN1F_PACKET

<X509_TBSCertificate  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity  |> subject=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>] subjectPublicKeyInfo=<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |> extensions=[<X509_Extension  extnValue=<X509_ExtBasicConstraints  |> |>] |>

signatureAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

signatureValue

ASN1F_BIT_STRING

<ASN1_BIT_STRING[0110010001...1001100101]=b'defaultsig...tsignature' (0 unused bit)>

class scapy.layers.x509.X509_DNSName(_pkt, /, *, dNSName=<ASN1_IA5_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_IA5_STRING object>
aliastypes
fields_desc
X509_DNSName fields

dNSName

ASN1F_IA5_STRING

<ASN1_IA5_STRING['']>

class scapy.layers.x509.X509_DirectoryName(_pkt, /, *, directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF directoryName>
aliastypes
fields_desc
X509_DirectoryName fields

directoryName

ASN1F_SEQUENCE_OF

[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>]

class scapy.layers.x509.X509_EDIPartyName(_pkt, /, *, nameAssigner=None, partyName=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.layers.x509.ASN1F_X509_DirectoryString object>)>
aliastypes
fields_desc
X509_EDIPartyName fields

nameAssigner

ASN1F_X509_DirectoryString

None

partyName

ASN1F_X509_DirectoryString

None

class scapy.layers.x509.X509_ExtAuthInfoAccess(_pkt, /, *, authorityInfoAccess=[<X509_AccessDescription  accessLocation=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF authorityInfoAccess>
aliastypes
fields_desc
X509_ExtAuthInfoAccess fields

authorityInfoAccess

ASN1F_SEQUENCE_OF

[<X509_AccessDescription  accessLocation=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>]

class scapy.layers.x509.X509_ExtAuthorityKeyIdentifier(_pkt, /, *, keyIdentifier=<ASN1_STRING[b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff']>, authorityCertIssuer=None, authorityCertSerialNumber=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtAuthorityKeyIdentifier fields

keyIdentifier

ASN1F_STRING

<ASN1_STRING[b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff']>

authorityCertIssuer

ASN1F_SEQUENCE_OF

None

authorityCertSerialNumber

ASN1F_INTEGER

None

class scapy.layers.x509.X509_ExtBasicConstraints(_pkt, /, *, cA=False <ASN1_BOOLEAN[False]>, pathLenConstraint=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtBasicConstraints fields

cA

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

pathLenConstraint

ASN1F_INTEGER

None

class scapy.layers.x509.X509_ExtCRLDistributionPoints(_pkt, /, *, cRLDistributionPoints=[<X509_ExtDistributionPoint  distributionPoint=<X509_ExtDistributionPointName  |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF cRLDistributionPoints>
aliastypes
fields_desc
X509_ExtCRLDistributionPoints fields

cRLDistributionPoints

ASN1F_SEQUENCE_OF

[<X509_ExtDistributionPoint  distributionPoint=<X509_ExtDistributionPointName  |> |>]

class scapy.layers.x509.X509_ExtCRLNumber(_pkt, /, *, cRLNumber=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_INTEGER object>
aliastypes
fields_desc
X509_ExtCRLNumber fields

cRLNumber

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.X509_ExtCertificateIssuer(_pkt, /, *, certificateIssuer=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF certificateIssuer>
aliastypes
fields_desc
X509_ExtCertificateIssuer fields

certificateIssuer

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.X509_ExtCertificatePolicies(_pkt, /, *, certificatePolicies=[<X509_ExtPolicyInformation  |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF certificatePolicies>
aliastypes
fields_desc
X509_ExtCertificatePolicies fields

certificatePolicies

ASN1F_SEQUENCE_OF

[<X509_ExtPolicyInformation  |>]

class scapy.layers.x509.X509_ExtComment(_pkt, /, *, comment=<ASN1_UTF8_STRING['Dummy comment.']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
X509_ExtComment fields

comment

ASN1F_CHOICE

<ASN1_UTF8_STRING['Dummy comment.']>

class scapy.layers.x509.X509_ExtDefault(_pkt, /, *, value=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_field object>
aliastypes
fields_desc
X509_ExtDefault fields

value

ASN1F_field

None

class scapy.layers.x509.X509_ExtDeltaCRLIndicator(_pkt, /, *, deltaCRLIndicator=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_INTEGER object>
aliastypes
fields_desc
X509_ExtDeltaCRLIndicator fields

deltaCRLIndicator

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.X509_ExtDistributionPoint(_pkt, /, *, distributionPoint=<X509_ExtDistributionPointName  |>, reasons=None, cRLIssuer=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtDistributionPoint fields

distributionPoint

ASN1F_PACKET

<X509_ExtDistributionPointName  |>

reasons

ASN1F_FLAGS

None

cRLIssuer

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_ExtDistributionPointName(_pkt, /, *, distributionPointName=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
X509_ExtDistributionPointName fields

distributionPointName

ASN1F_CHOICE

None

class scapy.layers.x509.X509_ExtExtendedKeyUsage(_pkt, /, *, extendedKeyUsage=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF extendedKeyUsage>
aliastypes
fields_desc
X509_ExtExtendedKeyUsage fields

extendedKeyUsage

ASN1F_SEQUENCE_OF

[]

get_extendedKeyUsage()[source]
class scapy.layers.x509.X509_ExtFreshestCRL(_pkt, /, *, cRLDistributionPoints=[<X509_ExtDistributionPoint  distributionPoint=<X509_ExtDistributionPointName  |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF cRLDistributionPoints>
aliastypes
fields_desc
X509_ExtFreshestCRL fields

cRLDistributionPoints

ASN1F_SEQUENCE_OF

[<X509_ExtDistributionPoint  distributionPoint=<X509_ExtDistributionPointName  |> |>]

class scapy.layers.x509.X509_ExtFullName(_pkt, /, *, fullName=[<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF fullName>
aliastypes
fields_desc
X509_ExtFullName fields

fullName

ASN1F_SEQUENCE_OF

[<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>]

class scapy.layers.x509.X509_ExtGeneralSubtree(_pkt, /, *, base=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>, minimum=None, maximum=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtGeneralSubtree fields

base

ASN1F_PACKET

<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>

minimum

ASN1F_INTEGER

None

maximum

ASN1F_INTEGER

None

class scapy.layers.x509.X509_ExtInhibitAnyPolicy(_pkt, /, *, skipCerts=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_INTEGER object>
aliastypes
fields_desc
X509_ExtInhibitAnyPolicy fields

skipCerts

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.x509.X509_ExtInvalidityDate(_pkt, /, *, invalidityDate=211204164637Z [invalid generalized time] <ASN1_GENERALIZED_TIME['211204164637Z']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_GENERALIZED_TIME object>
aliastypes
fields_desc
X509_ExtInvalidityDate fields

invalidityDate

ASN1F_GENERALIZED_TIME

211204164637Z [invalid generalized time] <ASN1_GENERALIZED_TIME['211204164637Z']>

class scapy.layers.x509.X509_ExtIssuerAltName(_pkt, /, *, issuerAltName=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF issuerAltName>
aliastypes
fields_desc
X509_ExtIssuerAltName fields

issuerAltName

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.X509_ExtIssuingDistributionPoint(_pkt, /, *, distributionPoint=<X509_ExtDistributionPointName  |>, onlyContainsUserCerts=False <ASN1_BOOLEAN[False]>, onlyContainsCACerts=False <ASN1_BOOLEAN[False]>, onlySomeReasons=None, indirectCRL=False <ASN1_BOOLEAN[False]>, onlyContainsAttributeCerts=False <ASN1_BOOLEAN[False]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_BOOLEAN object>, <scapy.asn1fields.ASN1F_BOOLEAN object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_BOOLEAN object>, <scapy.asn1fields.ASN1F_BOOLEAN object>)>
aliastypes
fields_desc
X509_ExtIssuingDistributionPoint fields

distributionPoint

ASN1F_PACKET

<X509_ExtDistributionPointName  |>

onlyContainsUserCerts

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

onlyContainsCACerts

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

onlySomeReasons

ASN1F_FLAGS

None

indirectCRL

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

onlyContainsAttributeCerts

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

class scapy.layers.x509.X509_ExtKeyUsage(_pkt, /, *, keyUsage=<ASN1_BIT_STRING[101]=b'\xa0' (5 unused bits)>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_FLAGS object>
aliastypes
fields_desc
X509_ExtKeyUsage fields

keyUsage

ASN1F_FLAGS

<ASN1_BIT_STRING[101]=b'\xa0' (5 unused bits)>

get_keyUsage()[source]
class scapy.layers.x509.X509_ExtNameConstraints(_pkt, /, *, permittedSubtrees=None, excludedSubtrees=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtNameConstraints fields

permittedSubtrees

ASN1F_SEQUENCE_OF

None

excludedSubtrees

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_ExtNameRelativeToCRLIssuer(_pkt, /, *, nameRelativeToCRLIssuer=<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_PACKET object>
aliastypes
fields_desc
X509_ExtNameRelativeToCRLIssuer fields

nameRelativeToCRLIssuer

ASN1F_PACKET

<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>

class scapy.layers.x509.X509_ExtNetscapeCertType(_pkt, /, *, netscapeCertType=<ASN1_BIT_STRING[]=b'' (0 unused bit)>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_BIT_STRING object>
aliastypes
fields_desc
X509_ExtNetscapeCertType fields

netscapeCertType

ASN1F_BIT_STRING

<ASN1_BIT_STRING[]=b'' (0 unused bit)>

class scapy.layers.x509.X509_ExtNoticeReference(_pkt, /, *, organization=<ASN1_UTF8_STRING['Dummy Organization']>, noticeNumbers=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_CHOICE object>, <ASN1F_SEQUENCE_OF noticeNumbers>)>
aliastypes
fields_desc
X509_ExtNoticeReference fields

organization

ASN1F_CHOICE

<ASN1_UTF8_STRING['Dummy Organization']>

noticeNumbers

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.X509_ExtPolicyConstraints(_pkt, /, *, requireExplicitPolicy=None, inhibitPolicyMapping=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtPolicyConstraints fields

requireExplicitPolicy

ASN1F_INTEGER

None

inhibitPolicyMapping

ASN1F_INTEGER

None

class scapy.layers.x509.X509_ExtPolicyInformation(_pkt, /, *, policyIdentifier=<ASN1_OID['anyPolicy']>, policyQualifiers=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtPolicyInformation fields

policyIdentifier

ASN1F_OID

<ASN1_OID['anyPolicy']>

policyQualifiers

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_ExtPolicyMappings(_pkt, /, *, policyMappings=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF policyMappings>
aliastypes
fields_desc
X509_ExtPolicyMappings fields

policyMappings

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.X509_ExtPolicyQualifierInfo(_pkt, /, *, policyQualifierId=<ASN1_OID['cps']>, qualifier=<ASN1_IA5_STRING['cps_str']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_CHOICE object>)>
aliastypes
fields_desc
X509_ExtPolicyQualifierInfo fields

policyQualifierId

ASN1F_OID

<ASN1_OID['cps']>

qualifier

ASN1F_CHOICE

<ASN1_IA5_STRING['cps_str']>

class scapy.layers.x509.X509_ExtPrivateKeyUsagePeriod(_pkt, /, *, notBefore=2021-12-03 16:36:37 UTC <ASN1_GENERALIZED_TIME['20211203163637Z']>, notAfter=2021-12-04 16:46:37 UTC <ASN1_GENERALIZED_TIME['20211204164637Z']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtPrivateKeyUsagePeriod fields

notBefore

ASN1F_GENERALIZED_TIME

2021-12-03 16:36:37 UTC <ASN1_GENERALIZED_TIME['20211203163637Z']>

notAfter

ASN1F_GENERALIZED_TIME

2021-12-04 16:46:37 UTC <ASN1_GENERALIZED_TIME['20211204164637Z']>

class scapy.layers.x509.X509_ExtQcStatement(_pkt, /, *, statementId=<ASN1_OID['.0.4.0.1862.1.1']>, statementInfo=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtQcStatement fields

statementId

ASN1F_OID

<ASN1_OID['.0.4.0.1862.1.1']>

statementInfo

ASN1F_field

None

class scapy.layers.x509.X509_ExtQcStatements(_pkt, /, *, qcStatements=[<X509_ExtQcStatement  |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF qcStatements>
aliastypes
fields_desc
X509_ExtQcStatements fields

qcStatements

ASN1F_SEQUENCE_OF

[<X509_ExtQcStatement  |>]

class scapy.layers.x509.X509_ExtReasonCode(_pkt, /, *, cRLReason=0x0 <ASN1_ENUMERATED[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_ENUMERATED object>
aliastypes
fields_desc
X509_ExtReasonCode fields

cRLReason

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

class scapy.layers.x509.X509_ExtSubjInfoAccess(_pkt, /, *, subjectInfoAccess=[<X509_AccessDescription  accessLocation=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF subjectInfoAccess>
aliastypes
fields_desc
X509_ExtSubjInfoAccess fields

subjectInfoAccess

ASN1F_SEQUENCE_OF

[<X509_AccessDescription  accessLocation=<X509_GeneralName  generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>]

class scapy.layers.x509.X509_ExtSubjectAltName(_pkt, /, *, subjectAltName=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF subjectAltName>
aliastypes
fields_desc
X509_ExtSubjectAltName fields

subjectAltName

ASN1F_SEQUENCE_OF

[]

class scapy.layers.x509.X509_ExtSubjectDirectoryAttributes(_pkt, /, *, subjectDirectoryAttributes=[<X509_Attribute  values=[<X509_AttributeValue  |>] |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF subjectDirectoryAttributes>
aliastypes
fields_desc
X509_ExtSubjectDirectoryAttributes fields

subjectDirectoryAttributes

ASN1F_SEQUENCE_OF

[<X509_Attribute  values=[<X509_AttributeValue  |>] |>]

class scapy.layers.x509.X509_ExtSubjectKeyIdentifier(_pkt, /, *, keyIdentifier=<ASN1_STRING['xffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxff']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
X509_ExtSubjectKeyIdentifier fields

keyIdentifier

ASN1F_STRING

<ASN1_STRING['xffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxffxff']>

class scapy.layers.x509.X509_ExtUserNotice(_pkt, /, *, noticeRef=None, explicitText=<ASN1_UTF8_STRING['Dummy ExplicitText']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_ExtUserNotice fields

noticeRef

ASN1F_PACKET

None

explicitText

ASN1F_CHOICE

<ASN1_UTF8_STRING['Dummy ExplicitText']>

class scapy.layers.x509.X509_Extension(_pkt, /, *, extnID=<ASN1_OID['basicConstraints']>, critical=False <ASN1_BOOLEAN[False]>, extnValue=<X509_ExtBasicConstraints  |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_EXT_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_PACKET object>)>
aliastypes
fields_desc
X509_Extension fields

extnID

ASN1F_OID

<ASN1_OID['basicConstraints']>

critical

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

extnValue

ASN1F_PACKET

<X509_ExtBasicConstraints  |>

class scapy.layers.x509.X509_Extensions(_pkt, /, *, extensions=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_optional object>
aliastypes
fields_desc
X509_Extensions fields

extensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_GeneralName(_pkt, /, *, generalName=<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
X509_GeneralName fields

generalName

ASN1F_CHOICE

<X509_DirectoryName  directoryName=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |>

class scapy.layers.x509.X509_IPAddress(_pkt, /, *, iPAddress=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
X509_IPAddress fields

iPAddress

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.x509.X509_OtherName(_pkt, /, *, type_id=<ASN1_OID['.0']>, value=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_CHOICE object>)>
aliastypes
fields_desc
X509_OtherName fields

type_id

ASN1F_OID

<ASN1_OID['.0']>

value

ASN1F_CHOICE

None

class scapy.layers.x509.X509_PolicyMapping(_pkt, /, *, issuerDomainPolicy=None, subjectDomainPolicy=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_OID object>)>
aliastypes
fields_desc
X509_PolicyMapping fields

issuerDomainPolicy

ASN1F_OID

None

subjectDomainPolicy

ASN1F_OID

None

class scapy.layers.x509.X509_RDN(_pkt, /, *, rdn=[<X509_AttributeTypeAndValue  |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SET_OF rdn>
aliastypes
fields_desc
X509_RDN fields

rdn

ASN1F_SET_OF

[<X509_AttributeTypeAndValue  |>]

class scapy.layers.x509.X509_RFC822Name(_pkt, /, *, rfc822Name=<ASN1_IA5_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_IA5_STRING object>
aliastypes
fields_desc
X509_RFC822Name fields

rfc822Name

ASN1F_IA5_STRING

<ASN1_IA5_STRING['']>

class scapy.layers.x509.X509_RegisteredID(_pkt, /, *, registeredID=<ASN1_OID['.']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_OID object>
aliastypes
fields_desc
X509_RegisteredID fields

registeredID

ASN1F_OID

<ASN1_OID['.']>

class scapy.layers.x509.X509_RevokedCertificate(_pkt, /, *, serialNumber=0x1 <ASN1_INTEGER[1]>, revocationDate=2021-12-04 16:46:37 UTC <ASN1_UTC_TIME['211204164637Z']>, crlEntryExtensions=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_UTC_TIME object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_RevokedCertificate fields

serialNumber

ASN1F_INTEGER

0x1 <ASN1_INTEGER[1]>

revocationDate

ASN1F_UTC_TIME

2021-12-04 16:46:37 UTC <ASN1_UTC_TIME['211204164637Z']>

crlEntryExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_SubjectPublicKeyInfo(_pkt, /, *, signatureAlgorithm=<X509_AlgorithmIdentifier  |>, subjectPublicKey=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_X509_SubjectPublicKeyInfo(<scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_BIT_STRING object>)>
aliastypes
fields_desc
X509_SubjectPublicKeyInfo fields

signatureAlgorithm

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

subjectPublicKey

ASN1F_BIT_STRING

None

class scapy.layers.x509.X509_TBSCertList(_pkt, /, *, version=0x1 <ASN1_INTEGER[1]>, signature=<X509_AlgorithmIdentifier  |>, issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>], this_update=2021-12-03 16:46:36 UTC <ASN1_UTC_TIME['211203164636Z']>, next_update=None, revokedCertificates=None, crlExtensions=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_PACKET object>, <ASN1F_SEQUENCE_OF issuer>, <scapy.asn1fields.ASN1F_UTC_TIME object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_TBSCertList fields

version

ASN1F_enum_INTEGER

0x1 <ASN1_INTEGER[1]>

signature

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

issuer

ASN1F_SEQUENCE_OF

[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>]

this_update

ASN1F_UTC_TIME

2021-12-03 16:46:36 UTC <ASN1_UTC_TIME['211203164636Z']>

next_update

ASN1F_UTC_TIME

None

revokedCertificates

ASN1F_SEQUENCE_OF

None

crlExtensions

ASN1F_SEQUENCE_OF

None

get_issuer()[source]
get_issuer_str()[source]

Returns a one-line string containing every type/value in a rather specific order. sorted() built-in ensures unicity.

class scapy.layers.x509.X509_TBSCertificate(_pkt, /, *, version=0x2 <ASN1_INTEGER[2]>, serialNumber=0x1 <ASN1_INTEGER[1]>, signature=<X509_AlgorithmIdentifier  |>, issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>], validity=<X509_Validity  |>, subject=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>], subjectPublicKeyInfo=<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |>, issuerUniqueID=None, subjectUniqueID=None, extensions=[<X509_Extension  extnValue=<X509_ExtBasicConstraints  |> |>])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_PACKET object>, <ASN1F_SEQUENCE_OF issuer>, <scapy.asn1fields.ASN1F_PACKET object>, <ASN1F_SEQUENCE_OF subject>, <scapy.asn1fields.ASN1F_PACKET object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
X509_TBSCertificate fields

version

ASN1F_enum_INTEGER

0x2 <ASN1_INTEGER[2]>

serialNumber

ASN1F_INTEGER

0x1 <ASN1_INTEGER[1]>

signature

ASN1F_PACKET

<X509_AlgorithmIdentifier  |>

issuer

ASN1F_SEQUENCE_OF

[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>]

validity

ASN1F_PACKET

<X509_Validity  |>

subject

ASN1F_SEQUENCE_OF

[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>]

subjectPublicKeyInfo

ASN1F_PACKET

<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |>

issuerUniqueID

ASN1F_BIT_STRING

None

subjectUniqueID

ASN1F_BIT_STRING

None

extensions

ASN1F_SEQUENCE_OF

[<X509_Extension  extnValue=<X509_ExtBasicConstraints  |> |>]

get_issuer()[source]
get_issuer_str()[source]

Returns a one-line string containing every type/value in a rather specific order. sorted() built-in ensures unicity.

get_subject()[source]
get_subject_str()[source]
class scapy.layers.x509.X509_URI(_pkt, /, *, uniformResourceIdentifier=<ASN1_IA5_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_IA5_STRING object>
aliastypes
fields_desc
X509_URI fields

uniformResourceIdentifier

ASN1F_IA5_STRING

<ASN1_IA5_STRING['']>

class scapy.layers.x509.X509_Validity(_pkt, /, *, not_before=2021-12-03 16:36:37 UTC <ASN1_UTC_TIME['211203163637Z']>, not_after=2021-12-04 16:46:37 UTC <ASN1_UTC_TIME['211204164637Z']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_CHOICE object>, <scapy.asn1fields.ASN1F_CHOICE object>)>
aliastypes
fields_desc
X509_Validity fields

not_before

ASN1F_CHOICE

2021-12-03 16:36:37 UTC <ASN1_UTC_TIME['211203163637Z']>

not_after

ASN1F_CHOICE

2021-12-04 16:46:37 UTC <ASN1_UTC_TIME['211204164637Z']>

class scapy.layers.x509.X509_X400Address(_pkt, /, *, x400Address=<_ASN1_ERROR['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_field object>
aliastypes
fields_desc
X509_X400Address fields

x400Address

ASN1F_field

<_ASN1_ERROR['']>