[stunnel-users] Problem with a signed certificate by CA andcurl/wget

Gabriel Sosa sosagabriel at gmail.com
Thu Jan 13 17:38:12 CET 2011


Jose,

thanks for your reply

here is the output of curl --verbose

[root at www ~]$ curl --verbose https://secure.example.com/test.php
* About to connect() to secure.example.com port 443
*   Trying xxx.xxx.xxx.xxx... connected
* Connected to secure.example.com (xxx.xxx.xxx.xxx) port 443
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
Unknown SSL protocol error in connection to secure.example.com:443
* Closing connection #0
curl: (35) Unknown SSL protocol error in connection to secure.example.com:443

if is there any other info you need please just let me know.

Thank you


On Thu, Jan 13, 2011 at 8:42 AM,  <josealf at rocketmail.com> wrote:
> Gabriel,
>
> Can you add the --verbose flag to your curl command and post the result?
>
>
> Jose
> -----Original Message-----
> From: Gabriel Sosa <sosagabriel at gmail.com>
> Sender: stunnel-users-bounces at mirt.net
> Date: Thu, 13 Jan 2011 01:39:15
> To: <stunnel-users at mirt.net>
> Subject: [stunnel-users] Problem with a signed certificate by CA and
>        curl/wget
>
> hello,
>
> I bought an ssl certificate on thawte and installed to stunnel.
>
> When I go to the site with any browser the ssl is established without
> any issue, however when I try to call an url using curl or wget I'm
> not able to download the content
>
> here are the output of curl/wget
>
> [root at www ~]$ curl https://secure.example.com/test.php
> curl: (35) Unknown SSL protocol error in connection to secure.example.com:443
> [root at www1 ~]$ wget https://secure.example.com/test.php
> --23:27:15--  https://secure.example.com/test.php
> Resolving secure.example.com... xxx.xxx.xxx.xxx
> Connecting to secure.example.com|xxx.xxx.xxx.xxx|:443... connected.
> Unable to establish SSL connection.
> [root at www ~]$
>
>
> my stunnel config file looks like
>
> ;setuid=nobody
> ;setgid=nobody
> fips=no
>
> pid=/var/run/stunnel.pid
> debug=3
> output=/var/log/stunnel.log
> cert=/etc/ssl/certs/stunnel.pem
> CAfile=/etc/ssl/certs/ssl123.crt
>
> socket=l:TCP_NODELAY=1
> socket=r:TCP_NODELAY=1
>
>
> [secure.example.com]
> accept=xxx.xxx.xxx.xxx:443
> connect=zzz.zzz.zzz.zzz:8443
> TIMEOUTclose=0
> xforwardedfor=yes
>
> I'm using the version 4.34 + xforwardedfor patch
>
> the file ssl123.crt contains the root CA of thawte
>
> uname -a output
>
> Linux secure.example.com 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36
> EST 2009 x86_64 x86_64 x86_64 GNU/Linux
>
> gcc -v output
>
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
> --with-cpu=generic --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
>
> openssl version
>
> OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
>
>
> Does anyone have some clue about what could be causing the problem.
> Any help will be really appreciated.
>
> Thank you
>
> --
> Gabriel Sosa
> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at mirt.net
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>



-- 
Gabriel Sosa
Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein



More information about the stunnel-users mailing list