<p>Laravel application deployed on Kubernetes and making requests to <a href="https://maps.google.com/maps/api/geocode/json" rel="nofollow noreferrer">https://maps.google.com/maps/api/geocode/json</a> failing with:</p>
<pre><code>SSL routines:tls_process_server_certificate:certificate verify failed
</code></pre>
<p>The same application works when running on Docker.</p>
<p>I have appended Google's Root CA certs from here <a href="https://developers.google.com/maps/root-ca-faq#what_is_happening" rel="nofollow noreferrer">https://developers.google.com/maps/root-ca-faq#what_is_happening</a> to the server's trust store but no luck there either.</p>
<p>I can disable verification but that's not the correct approach.</p>
<p>Any ideas would be much appreciated.</p>
<p>Thanks.</p>

user2881726
<p>According to the OP, the solution was:</p>
<blockquote>
<p>The issue was that our security team scans external certificates and
re-package them with the company's own cert. Once I added the
company's cert to the trust store, everything worked fine. It seems
it's only an internal issue.</p>
</blockquote>
