scapy.layers.x509

X.509 certificates.

class scapy.layers.x509.ASN1F_EXT_SEQUENCE(**kargs)

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_CRL(**kargs)

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_Cert(**kargs)

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_CHOICE

class scapy.layers.x509.ASN1F_X509_SubjectPublicKeyInfo(**kargs)

Bases: scapy.asn1fields.ASN1F_SEQUENCE

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

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1F_X509_SubjectPublicKeyInfoRSA(**kargs)

Bases: scapy.asn1fields.ASN1F_SEQUENCE

class scapy.layers.x509.ASN1P_INTEGER(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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

Sep 26 11:52:56 2020 GMT <ASN1_GENERALIZED_TIME['20200926115256Z']>

responses

ASN1F_SEQUENCE_OF

[]

responseExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.OCSP_RevokedInfo(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>

class scapy.layers.x509.X509_AlgorithmIdentifier(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' 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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity  |> subject=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' 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(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>]

class scapy.layers.x509.X509_EDIPartyName(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>]

class scapy.layers.x509.X509_ExtAuthorityKeyIdentifier(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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()
class scapy.layers.x509.X509_ExtFreshestCRL(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>]

class scapy.layers.x509.X509_ExtGeneralSubtree(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |>

minimum

ASN1F_INTEGER

None

maximum

ASN1F_INTEGER

None

class scapy.layers.x509.X509_ExtInhibitAnyPolicy(*args, **kargs)

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(*args, **kargs)

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

200927115256Z [invalid _generalized_time] <ASN1_GENERALIZED_TIME['200927115256Z']>

class scapy.layers.x509.X509_ExtIssuerAltName(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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()
class scapy.layers.x509.X509_ExtNameConstraints(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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

Sep 26 11:42:56 2020 GMT <ASN1_GENERALIZED_TIME['20200926114256Z']>

notAfter

ASN1F_GENERALIZED_TIME

Sep 27 11:52:56 2020 GMT <ASN1_GENERALIZED_TIME['20200927115256Z']>

class scapy.layers.x509.X509_ExtQcStatement(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |> |> |>]

class scapy.layers.x509.X509_ExtSubjectAltName(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Name']> |>] |>] |>

class scapy.layers.x509.X509_IPAddress(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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(*args, **kargs)

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

Sep 27 11:52:56 2020 GMT <ASN1_UTC_TIME['200927115256Z']>

crlEntryExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_SubjectPublicKeyInfo(*args, **kargs)

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>]

this_update

ASN1F_UTC_TIME

Sep 26 11:52:55 2020 GMT <ASN1_UTC_TIME['200926115255Z']>

next_update

ASN1F_UTC_TIME

None

revokedCertificates

ASN1F_SEQUENCE_OF

None

crlExtensions

ASN1F_SEQUENCE_OF

None

get_issuer()
get_issuer_str()

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(*args, **kargs)

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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' 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='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' 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()
get_issuer_str()

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

get_subject()
get_subject_str()
class scapy.layers.x509.X509_URI(*args, **kargs)

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(*args, **kargs)

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

Sep 26 11:42:56 2020 GMT <ASN1_UTC_TIME['200926114256Z']>

not_after

ASN1F_CHOICE

Sep 27 11:52:56 2020 GMT <ASN1_UTC_TIME['200927115256Z']>

class scapy.layers.x509.X509_X400Address(*args, **kargs)

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_Object['']>