cURL / Mailing Lists / curl-library / Single Mail


Re: Questions on SSL Certificates

From: Michael Schlenker <>
Date: Wed, 10 Jun 2015 15:24:50 +0200


> I am using libcurl in an application that I cross-compile to run on a
> Raspberry Pi. I've built libcurl with openssl.

This is probably the issue. OPENSSL has a compile time default location
for its trusted certificates, if you cross-compiled a staticly linked
openssl into your libcurl, the default is probably wrong.

You can set an environment variable to fix the default location usually,
or you can use libcurls configuration to fix it, but you do not want that.

So, your best choice might be to use a good default location when you
cross-build openssl (e.g. the expected dir on your raspbian, often
/etc/ssl or similar directories, varies by Linux distro).


Michael Schlenker
Senior Software Engineer
CONTACT Software GmbH           Tel.:   +49 (421) 20153-80
Wiener Stra├če 1-3               Fax:    +49 (421) 20153-41
28359 Bremen
Registered office: Bremen, Germany
Managing directors: Karl Heinz Zachries, Ralf Holtgrefe
Court of register: Amtsgericht Bremen HRB 1321
List admin:
Received on 2015-06-10