code: def blob_to_pyasn1(blob):
      
  
      return pyasn1.codec.der.decoder.decode(
          blob,
          asn1Spec=pyasn1_modules.rfc2459.Certificate()
      )[0]
docs: Convert an ASN.1 encoded certificate (such as obtained from
      :func:`extract_blob`) to a :mod:`pyasn1` structure and return the result.