curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

CURLE_SSL_CACERT_BADFILE error for HTTPS URL

From: shiftag via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 10 Jan 2020 22:22:36 +0400

Hello,

I'm using static libcurl and openssl for my project. When I tried to
access an HTTPS URL I got the following error: CURLE_SSL_CACERT_BADFILE

I think this issue came from static openssl as it works fine when I was
using the one on my system.

I built the static libraries that way:

- openssl:

        ./config
            no-shared
            no-stdio
            no-dso 
            no-engine
            no-srp   
            no-psk  
            no-ec2m 
            no-comp 
            --prefix=$(PATHDEP)                
            --openssldir=$(PATHDEP)       
        make                                                 
        make install

- curl:
        ./buildconf                                         
        PKG_CONFIG_PATH=$(PATHDEP)/lib/pkgconfig ./configure      
            --with-ssl             
            --disable-shared
            --enable-static    
            --disable-ntlm-wb
            --without-ntlm     
            --disable-ldap     
            --disable-telnet   
            --disable-ipv6     
            --disable-ldaps   
            --disable-rtsp       
            --disable-tftp        
            --disable-pop3    
            --disable-imap    
            --disable-smb     
            --disable-smtp    
            --disable-gopher  
            --without-brotli       
            --without-librtmp
            --prefix=$(PATHDEP)
        make
        make install

When statically building openssl the certs folder is empty, so I used
mk-ca-bundle.pl file to instal the bundle. But the problem persist.

Please, let me know if you need more details.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-10