[stunnel-users] error queue: 140B0009: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib

Hamid.Shahid at sungard.com Hamid.Shahid at sungard.com
Mon Nov 28 09:31:39 CET 2011


Hi,

I am trying to connect to a remote SSL enabled server via stunnel. I am using a single file for key and certificate "sunStunnel.pem", just like the default "stunnel.pem" and I am getting following errors. Please let me know, what they mean and what should be done to resolve these?

Note: I was able to telnet the machine, so server seems to be working.

Thanks.

=======
  Config
=======

debug = 7
output = stunnel.log
cert = sunStunnel.pem

[GPC-HOST]
client = yes
[syslog]
accept  = 127.0.0.1:2525
connect = <ip>:<port>

=======
     Log
=======
No limit detected for the number of clients
make_sockets: s_socket#1: FD=652 allocated (blocking mode)
make_sockets: s_socket#2: FD=648 allocated (blocking mode)
make_sockets: s_accept: FD=604 allocated (non-blocking mode)
stunnel 4.47 on x86-pc-mingw32-gnu platform
Compiled/running with OpenSSL 1.0.0e 6 Sep 2011
Threading:WIN32 SSL:ENGINE Auth:none Sockets:SELECT,IPv6
Reading configuration from file stunnel.conf
Snagged 64 random bytes from C:/.rnd
Wrote 1024 new random bytes to C:/.rnd
PRNG seeded successfully
Initializing SSL context for service GPC-HOST
Certificate: sunStunnel.pem
Certificate loaded
Key file: sunStunnel.pem

error queue: 140B0009: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
error queue: 907B00D: error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib
error queue: D08303A: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
error queue: D06C03A: error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error
SSL_CTX_use_PrivateKey_file: D0680A8: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

Server is down

Kind Regards,
Hamid Shahid

[cid:image001.gif at 01CC6F01.EF535C90]<http://www.sungard.com/ten>
Hamid Shahid * Integration Developer * Front Arena * Capital Markets * SunGard * Kungsbron 2, PO Box 70351, SE-107 24 Stockholm, Sweden * Tel +46 (0) 8 454 0167 * Direct +46 (0) 8 454 0167 * Mobile +46 (0) 76 869 2167 * hamid.shahid at sungard.com<mailto:ronny.andersson at sungard.com> * www.sungard.com<http://www.sungard.com/>
Join SunGard's customers, partners and industry experts at www.sungard.com/ten<http://www.sungard.com/ten> to discuss how the need for more Transparency, Efficiency and Networks is changing our industry and to register for a city day event near you.
VIENNA HOUSTON FRANKFURT BEIJING HONG KONG NEW YORK LONDON SEOUL ZURICH MUMBAI JOHANNESBURG DUBAI SAO PAULO
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited.  If you receive this e-mail in error, please notify the sender and delete this e-mail from your system.Thank you.
P Please consider the environment before printing this e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20111128/77cbe3b7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 5202 bytes
Desc: image001.gif
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20111128/77cbe3b7/attachment.gif>


More information about the stunnel-users mailing list