title: How and where to Install SSL certificate on vapor 4 app?
body: <p>I am trying to deploy postgres in Digital Ocean. After setting up the Managed databases, it provided ca-certificate.crt which needs to be installed on the backend app.
  Tech stack</p>
  <ul>
  <li>Vapor for backend dev</li>
  <li>DO for server</li>
  </ul>
  <p>As per DO, they said to refer the docs of Vapor how to install it. Unfortunately, Vapor has no documentation yet on how to install it. <a href="https://docs.vapor.codes/4.0/fluent/overview/" rel="nofollow noreferrer">https://docs.vapor.codes/4.0/fluent/overview/</a></p>
  <p>How can I install .crt file on vapor project to test if SSL is working or not. It helps me to connect with DB on DO. Any help is appreciated.</p>
  <p>So far my code doesn't have any TLS configuration, I can add TLS config only after the crt is where to install correctly.</p>
  <pre><code> app.databases.use(.postgres(
                          example&quot;,
                          port: 25060,
                          username: &quot;example&quot;,
                          password: &quot;example&quot;,
                          database: &quot;exampledb&quot;),
                        as: .psql)
  </code></pre>