title: Spring Boot connection to Postgresql with SSL
body: <p>I have a Spring Boot application (version 2.1.1) using Postgresql 9.6 as database.
  I have to connect to the db via SSL with <code>sslmode=verify-ca</code>.
  What I have done till now is to set in the Application.properties file the property</p>
  
  <pre><code>spring.datasource.url=jdbc:postgresql://`url`:`port`/`db`?
      ssl=true&amp;
      sslmode=verify-ca&amp;
      sslcert=`path_to_client_cert`&amp;
      sslkey=`path_to_client_key`&amp;
      sslrootcert=`path_to_ca_cert`
  </code></pre>
  
  <p>Is there a way to specify the ssl properties in some others spring properties and not in the connection url?</p>
  
  <p>Also, there is the possibility to specify relative paths for the certificates instead of using the absolute paths?</p>