Skip to content

Instantly share code, notes, and snippets.

<!-- Scripts Start -->
<b:if cond='data:post.isFirstPost'>
<!-- Facebook -->
<div id='fb-root'/>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";

I can't get curl to validate the SSL cert for https://testintegrations.pentanasolutions.com/iTestDriveService. It works fine in my web browser. The certificate is signed by DigiCert which I thought perhaps was not included in the bundle on my linux box.

To try and work around that I extracted the CA certificates from my windows machine in the the AllCA.pem file and told curl to use that. The ssl validation still failed. I then tried just extracting the DigiCert root certificate by viewing the certificate chain from the browser and using just this cert with curl. It still doesn't validate the certificate.

I then tried getting https://www.google.com.au which did work. I find it very odd as this works even when I specify the CA certificate to be just the DigiCert certificate even though google's key is not signed by DigiCert. This makes me wonder if curl is even using my ca file at all.