cURL certificate verification on Windows Servers

I recently lost about five hours time on this issue, so here is my fix:

If you get this error message when trying to validate cURL certificates on Windows machines:

Curl returned error 60: SSL certificate problem, verify that the CA cert is OK. Details:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

  1. Be advised that curl_setopt($handle, CURLOPT_CAPATH,...) command is NOT working on Windows machines, due to some issues with openssl.
  2. You must instead work with the CURLOPT_CAINFO flag in above command.
  3. Get Mozilla’s certificate authority bundle file from here: https://curl.haxx.se/docs/caextract.html
  4. Point curl to it with above flag (2).

Working code should look like this:

curl_setopt($handle, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, TRUE);

FPÖ stellt Resolutionsanträge gegen Durchgriffsrecht der Bundesregierung in Flüchtlingsfrage

In einer konzertierten Aktion bringen FPÖ Geimeinderatsfraktionen derzeit in ganz Österreich Resolutionsanträge gegen das Durchgriffsrecht des Bundes zur Schaffung von Flüchtlingsquartieren ein. Auch die FPÖ Steyregg hat einen solchen Antrag eingebracht, der in der kommenden Gemeinderatssitzung am 3. März zur Abstimmung gebracht werden soll. Continue reading “FPÖ stellt Resolutionsanträge gegen Durchgriffsrecht der Bundesregierung in Flüchtlingsfrage”

Creating SSL certificates for Exim4 and Dovecot in Ubuntu 15.10

It took me three complete days to figure out how to create the SSL certificates for TLS, DKIM signatures and IMAP-SSL in Exim4 and Dovecot. Every application requires another certificate to work, and all certificates need special rights to be read in by Exim and Dovecot. Just don’t ask me why… Continue reading “Creating SSL certificates for Exim4 and Dovecot in Ubuntu 15.10”