code: def _get_request_obj(csr):
      '''
      Returns a CSR object based on PEM text.
      '''
      text = _text_or_file(csr)
      text = get_pem_entry(text, pem_type='CERTIFICATE REQUEST')
      return M2Crypto.X509.load_request_string(textf _get_request_obj(csr):
      '''
      Returns a CSR object based on PEM text.
      '''
      text = _text_or_file(csr)
      text = get_pem_entry(text, pem_type='CERTIFICATE REQUEST')
      return M2Crypto.X509.load_request_string(text)
docs: Returns a CSR object based on PEM text.