title: how to access mongodb using pem file
body: <p>I'm trying to access mongodb on remote server using ssl.  I followed the following tutorial<a href="http://docs.mongodb.org/v2.2/administration/ssl/" rel="nofollow"> [link]</a>.</p>
  
  <p>I don't even know about the password part yet as I use ssh and the pem file without a password all the time.</p>
  
  <p>Regardless, I used the following command:</p>
  
  <pre><code>mongod --sslOnNormalPorts &lt;my pem file&gt;
  </code></pre>
  
  <p>and got the following error:</p>
  
  <pre><code>Error parsing command line: unknown option sslOnNormalPorts
  </code></pre>
  
  <p>is there a simple way for me to access the remote mongodb database remotely?</p>
  
  <p><strong>EDIT Based on Comments</strong></p>
  
  <p>I read this <a href="http://docs.mongodb.org/manual/reference/program/mongo/#cmdoption--host" rel="nofollow">link</a> and tried the following:</p>
  
  <pre><code>mongo --host xx.xx.xxx.xxx/db-name --sslPEMKeyFile pemfileName.pem
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>Error parsing command line: unknown option sslPEMKeyFile
  </code></pre>
  
  <p>What am I doing wrong?</p>