title: Prevent OpenSSL from using system certificates?
body: <p>How can I prevent OpenSSL (specifically, Python's <code>ssl</code> module) from using system certificate authorities?</p>
  
  <p>In other words, I would like it to trust only the certificate authorities which I specify, and nothing else:</p>
  
  <pre><code>ssl_socket = ssl.wrap_socket(newsocket, server_side=True, certfile="my_cert.pem",
                               ca_certs=MY_TRUSTED_CAs, # &lt;&lt;&lt; Only CAs specified here
                               cert_reqs=ssl.CERT_REQUIRED, ssl_version=ssl.PROTOCOL_TLSv1)
  </code></pre>