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

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

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

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

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

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

Bases: scapy.packet.Packet

aliastypes
fields_desc
ECDSAPrivateKey_OpenSSL fields

ecparam

_PacketFieldRaw

<ECParameters  |>

privateKey

PacketField

<ECDSAPrivateKey  |>

class scapy.layers.x509.ECDSAPublicKey

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Nov 16 03:13:58 2019 GMT <ASN1_GENERALIZED_TIME['20191116031358Z']>

responses

ASN1F_SEQUENCE_OF

[]

responseExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.OCSP_RevokedInfo

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

class scapy.layers.x509.X509_ExtIssuerAltName

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

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

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

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

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

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

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

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

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['certificatePolicies.0']>

policyQualifiers

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_ExtPolicyMappings

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

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

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

Nov 16 03:03:58 2019 GMT <ASN1_GENERALIZED_TIME['20191116030358Z']>

notAfter

ASN1F_GENERALIZED_TIME

Nov 17 03:13:58 2019 GMT <ASN1_GENERALIZED_TIME['20191117031358Z']>

class scapy.layers.x509.X509_ExtQcStatement

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Nov 17 03:13:58 2019 GMT <ASN1_UTC_TIME['191117031358Z']>

crlEntryExtensions

ASN1F_SEQUENCE_OF

None

class scapy.layers.x509.X509_SubjectPublicKeyInfo

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

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

Nov 16 03:13:57 2019 GMT <ASN1_UTC_TIME['191116031357Z']>

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

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

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

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

Nov 16 03:03:58 2019 GMT <ASN1_UTC_TIME['191116030358Z']>

not_after

ASN1F_CHOICE

Nov 17 03:13:58 2019 GMT <ASN1_UTC_TIME['191117031358Z']>

class scapy.layers.x509.X509_X400Address

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