title: Python requests CA certificates as a string
body: <p>Currently we're using an approach of putting CA Certificates on the server to access third party APIs.</p>
  
  <pre><code>certificate_path = os.path.join(CERT_PATH, 'cacert.pem')
  certificate_key_path = os.path.join(CERT_PATH, 'cacert.key')
  response = requests.get(url, cert=(certificate_path, certificate_key_path))
  </code></pre>
  
  <p>This works,But we're looking for instead of storing CA certificates on the server, store in the <code>Accounts</code> Table in the database for security purposes (security cause raised by Customer).</p>
  
  <p>So the questions are:</p>
  
  <ul>
  <li><p>Is there any approach we can directly pass CA cert's string to the <code>requests</code> directly (other than writing content in to a temp file)?</p></li>
  <li><p>Is any other <code>http</code> python module support passing CA cert's string in the <code>http</code> get/post request?</p></li>
  <li><p>Is there any other approach we should use instead of storing them in the database and on the server?</p></li>
  </ul>