title: How to configure SSL mongodb connection in YML file spring boot?
body: <p>I was trying to setup a ssl mongodb connection from spring boot but I couldn't able to find a way to set a connection from <code>YML</code> file(beacuse it's easy to maintain dev and prod environment). How can I add client.PEM and rootCA.pem keys to below connection? </p>
  
  <p>Please note this not a database administration question! </p>
  
  <pre><code>data:
       mongodb:
           authentication-database: admin
           database: &lt;database&gt;
           host: &lt;host&gt;
           password: &lt;password&gt;
           port: &lt;port&gt;
           username: &lt;username&gt;
  </code></pre>