cURL / Mailing Lists / curl-library / Single Mail


Re: Unable to send email with libcurl (cross compiled for arm) application

From: usama yaseen <>
Date: Fri, 27 Jul 2012 02:47:49 -0700 (PDT)

I am able to resolve the smtp issue by specifying the ca-bundle, now i am able to send the emails from arm without any problem, here's the parameters of configure command: ./configure --host=arm-none-linux-gnueabi --build=i686-linux CFLAGS='-Os' --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --with-ssl --enable-smtp The output of curl --version is : root@am180x-evm:/home# curl --version curl 7.26.0 (arm-none-linux-gnueabi) libcurl/7.26.0 OpenSSL/1.0.1c Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps te lnet tftp Features: Largefile NTLM NTLM_WB SSL TLS-SRP Https is available in the list of supported protocols, but when i try to open some site on https i receive same error of certificate. (Although during sending email it picks up the certificate but it didn't use that certificate while opening a site). ________________________________ From: Dan Fandrich <> To: Sent: Tuesday, July 24, 2012 2:25 PM Subject: Re: Unable to send email with libcurl (cross compiled for arm) application On Mon, Jul 23, 2012 at 11:52:31PM -0700, usama yaseen wrote: > yes previously ssl support was not enabled and https was not included in the > protocols supported, i installed SSL from source and now my configure option is > like this: > > ./configure --host=arm-none-linux-gnueabi --build=i686-linux CFLAGS='-Os' > --enable-smtp --with-ssl > > after installing curl, when i type curl-config --protocols in the terminal, > https is included in the list of supported protocols. But what does curl --version say? That's the more reliable indicator since it takes the run-time linking into account, which curl-config does not. > But even after all this the output of sample application is the same, Exactly the same? > When i try to open any site with the curl, i got this which is surely related > to the certificate: > root@am180x-evm:/home# curl > curl: (60) SSL certificate problem: certificate is not yet valid > More details here: > > curl performs SSL certificate verification by default, using a "bundle" > of Certificate Authority (CA) public keys (CA certs). If the default > bundle file isn't adequate, you can specify an alternate file > using the --cacert option. > If this HTTPS server uses a certificate signed by a CA represented in > the bundle, the certificate verification probably failed due to a > problem with the certificate (it might be expired, or the name might > not match the domain name in the URL). > If you'd like to turn off curl's verification of the certificate, use > the -k (or --insecure) option. > > Now how can i resolve this ? should i specify the certificate in while > configuring ? and from where do i get the certificate of arm ? or will it be > the same as of pc ? See >>> Dan ------------------------------------------------------------------- List admin: Etiquette:

List admin:
Received on 2012-07-27