title: Using PyMongo with Public SSL Key
body: <p>I'm trying out the hosted MongodDB+ beta from Compose.io, which supports SSL connections. It provides a public SSL key, and to connect from the command line you use the following arguments:</p>
  
  <pre><code>$ mongo -ssl -sslCAFile example.pem example.dblayer.com:10373/admin -u user -p pass
  </code></pre>
  
  <p>I need to access my DB from a Python script using PyMongo, but I'm not sure how to translate the above syntax to MongoClient connection arguments; I'm only familiar with connecting without SSL, i.e.</p>
  
  <pre><code>client = MongoClient('mongodb://&lt;user&gt;:&lt;pass&gt;@example.dblayer.com:10373/admin')
  </code></pre>