code: def extract_pk_blob_from_pyasn1(pyasn1_struct):
      
  
      pk = pyasn1_struct.getComponentByName(
          "tbsCertificate"
      ).getComponentByName(
          "subjectPublicKeyInfo"
      )
  
      return pyasn1.codec.der.encoder.encode(pk)
docs: Extract an ASN.1 encoded public key blob from the given :mod:`pyasn1`
      structure (which must represent a certificate).