code: def process_pem_cert(self, data, name, idx):
          
          from cryptography.x509.base import load_der_x509_certificate
          try:
              x509 = load_der_x509_certificate(pem_to_der(data), self.get_backend())
              self.num_pem_certs += 1
              return self.process_x509(x509, name=name, idx=idx, data=data, pem=True, source='pem-cert')
  
          except Exception as e:
              logger.debug('PEM processing failed: %s' % e)
              self.trace_logger.log(e)
docs: Processes PEM encoded certificate
          :param data:
          :param name:
          :param idx:
          :return: