cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling libcurl with ssl using mingw

From: Pavel <cl4proze_at_cling.gu.se>
Date: Fri, 27 Jul 2007 15:51:59 +0200

Hi,
thank you very much. That worked, but now I am getting:
"curl: (77) error setting certificate verify locations:"
when I try doing a https transfer. I know that I have access to the file
in question so that can't be the problem.
I know that it can be bypassed with -k or setting CURLOPT_SSL_VERIFYPEER
option, but having ability to verify certificates would be nice.
Any suggestions?
/pavel

On Fri, 27 Jul 2007 12:05:42 +0200, FANDOM_at_telefonica.net
<FANDOM_at_telefonica.net> wrote:

> Hi,
>
> This is whay I do to compile curl with ssl support:
>
> - To compile it you are going to need Perl in your system, for
> whatever the reason
> I couldn't get it to work with the Perl that comes with
> Cygwin, so I had to
> download ActivePerl: http://www.activestate.com.
>
> - Open a MS-DOS console in the openssl directory and make sure
> that both
> perl and mingw are in you path:
>
> c:\openssl-0.9.8e\> echo %PATH%
>
> if they aren't add them:
>
> c:\openssl-0.9.8e\> PATH=%PATH%;C:\Perl\bin;c:\MinGW\bin
>
> change the paths if you need to.
>
> - To compile:
>
> c:\openssl-0.9.8e\> ms\mingw32.bat
> and hope for the best.
>
> - After it compiles you have to copy some files around:
>
> - libcryto.a, libeay32.a, libssl.a and libssl32.a from
> openssl-0.9.8e\out to c:\msys\local\lib.
>
> - libeay32.dll and libssl32.dll from openssl-0.9.8e to
> c:\msys\local\lib and c:\msys\local\bin.
>
> - The contents of openssl-0.9.8e\outinc to c:
> \msys\local\include.
>
> After doing this you only need to configure curl
>
> -/configue --with-ssl=/usr/local
>
> Andres
>
Received on 2007-07-27