SSL

BlitzMax Forums/Brucey's Modules/SSL

JoshK(Posted 2015) [#1]
I am trying to connect to my server via SSL, using libcurlssl. I can connect successfully with my PEM file, but when the program closes it displays a notification saying
Compile Error

0


And a bunch of extra text is printed to the program output (some information hidden):
* Adding handle: conn: 0x38d308
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x38d308) send_pipe: 1, recv_pipe: 0
* About to connect() to www.leadwerks.com port 443 (#0)
* Trying 173.199.141.176...
* Connected to www.leadwerks.com (xxx.xxx.xxx.xxx) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: ./cacert.pem
CApath: none
* SSL connection using XXX-XXX-XXX-XXX
* Server certificate:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Host: www.leadwerks.com
Accept: */*

< HTTP/1.1 200 OK
< Date: Mon, 29 Jun 2015 22:57:36 GMT
* Server Apache is not blacklisted
< Server: Apache
< X-Powered-By: PHP/5.3.28
< Vary: Accept-Encoding
< Content-Length: 23
< Content-Type: text/html
<
* Connection #0 to host www.leadwerks.com left intact


The same thing happens when I use the default example cert.


JoshK(Posted 2015) [#2]
This can be eliminated by disabling "verbose" mode:
curl.setOptInt(CURLOPT_VERBOSE, 0)