[Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https

gambas at ...2524... gambas at ...2524...
Sun Apr 15 08:25:49 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 236 by sebi... at ...626...: gb.net.curl fails to connect using https
http://code.google.com/p/gambas/issues/detail?id=236

When using the gb.net.curl component to fetch a page using ssl (https) curl  
raises an unknown error. If AnyHttpClientInstance.Debug = True, the  
following is printed to stdout: (used the HTTPGet example to test the bug)

Example using https://lwn.net
* Connection #0 seems to be dead!
* Closing connection #0
* About to connect() to lwn.net port 443 (#0)
*   Trying 72.51.34.34...
* Connected to lwn.net (72.51.34.34) port 443 (#0)
* Connected to lwn.net (72.51.34.34) port 443 (#0)
* SSL: couldn't create a context:  
error:140A90A1:lib(20):func(169):reason(161)
* Closing connection #0

If you execute curl from a terminal (e.g curl -v https://lwn.net) it  
completes without an error

IMHO, it has to do with certificate validation, but that's all I could find

System: Archlinux
Version: 3.1
Output of <curl --version>:
curl 7.25.0 (i686-pc-linux-gnu) libcurl/7.25.0 OpenSSL/1.0.1 zlib/1.2.6  
libssh2/1.4.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp  
scp sftp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP






More information about the User mailing list