How to conect Google Apps Script JDBC to Amazon RDS with SSL
<p>Google launched support for SSL connections in the JDBC service. Google added three new connection parameters to support this feature: <code>_serverSslCertificate</code>, <code>_clientSslCertificate</code>, and <code>_clientSslKey</code>. The documentation is available here:</p>

<p><a href="https://developers.google.com/apps-script/reference/jdbc/jdbc#getConnection(String,Object)" rel="noreferrer">https://developers.google.com/apps-script/reference/jdbc/jdbc#getConnection(String,Object)</a></p>

<p>When a database in Amazon is created, we can add SSL support to it:</p>

<p><a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html" rel="noreferrer">http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html</a></p>

<p>As an example if we create a MariaDB database, we just have to download the next certificate: <code>rds-ca-2015-root.pem</code></p>

<p>And access to database with the next command:</p>

<pre><code>mysql -h mymariadbinstance.abcd1234.rds-us-east-1.amazonaws.com --ssl-ca=[full path]rds-combined-ca-bundle.pem --ssl-verify-server-cert
</code></pre>

<p>And apply SSL to an specific user:</p>

<pre><code>GRANT USAGE ON *.* TO 'encrypted_user'@'%' REQUIRE SSL
</code></pre>

<p>So, how can we conect with SSL to an Amazon Database using the GAS JDBC API?</p>