Hi, 1. My Problem: ------------- - Using libwww-perl and Crypt-SSLeay to access a web-site with X509 certificates via HTTPS - It seems that I can access (GET) a site which has a 40 bit certificate (see further below), but it doesn't work with a site having an 128 bit certificate. N.B. Even on the 40 bit site I'm still getting a warning message: "Client-SSL-Warning: Peer certificate not verified". Seems like there's maybe something still going wrong. I'm setting the HTTPS_CA_DIR and HTTPS_CA_FILE environment variables as described in the documentation. - Something else strange - when I don't(!) set the two environment variables, then I can access both sites(!!). The warning "Client-SSL-Warning: Peer certificate not verified" is however still being issued.
2. HTTP-Output -------------- Here's the output when I set HTTPS_DEBUG variable: 2.1 40 bit certificate (OK) --------------------------- -HttpRequest------------------------------ GET https://www.tklink.com/docbrs Accept: */* User-Agent: IClient v1.2 SSL_connect:before/connect initialization SSL_connect:SSLv2/v3 write client hello A SSL_connect:SSLv3 read server hello A SSL_connect:SSLv3 read server certificate A SSL_connect:SSLv3 read server key exchange A SSL_connect:SSLv3 read server done A SSL_connect:SSLv3 write client key exchange A SSL_connect:SSLv3 write change cipher spec A SSL_connect:SSLv3 write finished A SSL_connect:SSLv3 flush data SSL_connect:SSLv3 read finished A -HttpResponse----------------------------- HTTP/1.1 200 (OK) Ok Cache-Control: no-cache Connection: close Pragma: no-cache Pragma: no-cache Content-Type: text/html Expires: 0 Client-Date: Mon, 21 Jul 2003 14:24:07 GMT Client-Peer: 153.46.248.100:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server Certifi cation Authority Client-SSL-Cert-Subject: /C=CH/ST=Zurich/L=Zurich/O=Telekurs Finanzinformationen AG/OU=TKlink/OU=Terms of use at www.eurotrust.dk/rpa (c) 03/OU=Authenticated by EuroTrust/OU=Member, VeriSign Trust Network/CN=www.tklink.com Client-SSL-Cipher: DHE-RSA-AES256-SHA Client-SSL-Warning: Peer certificate not verified FD-ID: 80a74dd6!11690 Set-Cookie: FD_USER_ALTEON=b64-YnMwLRfxcLgz2Zh78LNpfRuPXG2F7oAJ7cQl8wDYyu06zPEqU djfy8$fWPrbEdYsNrUNDQ==; Max-Age=31536000; expires=Fri, 01 Jan 2010 00:00:00 GMT ; Path=/ Set-Cookie: FDState=b64-YnMwLe4ExS7sufcNWUknLmoaPNiS7uriEo8j1pqWpvVUS06nht4we80G UiPnuC6XOYVG$TQMja7IY13kOpJ7Pw5tGrBpRZSbKG-$usodOZPFEMqIvBdM7Ge1Eeh3Ae2jaQnZ3tsR 1iw2tQ0N; Max-Age=31536000; expires=Fri, 01 Jan 2010 00:00:00 GMT; Path=/ Title: Telekurs Login 2.2 128 bit certificate (ERROR) ------------------------------- -HttpRequest------------------------------ GET https://wwwqa1.tklink.com/docbrs Accept: */* User-Agent: IClient v1.2 SSL_connect:before/connect initialization SSL_connect:SSLv2/v3 write client hello A SSL_connect:SSLv3 read server hello A SSL3 alert write:fatal:unknown CA SSL_connect:error in SSLv3 read server certificate B SSL_connect:error in SSLv3 read server certificate B SSL_connect:before/connect initialization SSL_connect:SSLv3 write client hello A SSL_connect:SSLv3 read server hello A SSL3 alert write:fatal:bad certificate SSL_connect:error in SSLv3 read server certificate B SSL_connect:before/connect initialization SSL_connect:SSLv2 write client hello A SSL_connect:error in SSLv2 read server hello B -HttpResponse----------------------------- 500 (Internal Server Error) SSL negotiation failed: error:1407E086:SSL routines: SSL2_SET_CERTIFICATE:certificate verify failed Client-Date: Mon, 21 Jul 2003 14:28:23 GMT 3. My configuration: ------------------- - Win32 (NT 4.0, Build 1381, Service pack 6) - ActiveState perl build 806 (perl 5.8.0) - AS package - Crypt-SSLeay-0.51 from Theory5 (Canada) - Perl-Module versions see below: ppm> query * Querying target 1 (ActivePerl 5.8.0.806) 1. ActivePerl-DocTools [0.04] Perl extension for Documentation TOC Gene~ 2. ActiveState-Relocat~ [0.03] Relocate a Perl installation 3. Archive-Tar [0.072] module for manipulation of tar archives. 4. Compress-Zlib [1.16] Interface to zlib compression library 5. Crypt-SSLeay [0.51] OpenSSL and SSLeay glue that provides LWP~ 6. Data-Dump [0.04] Pretty printing of data structures 7. Digest-HMAC [1.01] Keyed-Hashing for Message Authentication 8. Digest-MD2 [2.0] Perl interface to the MD2 Algorithm 9. Digest-MD4 [1.1] Perl interface to the MD4 Algorithm 10. Digest-SHA1 [2.01] Perl interface to the SHA-1 Algorithm 11. File-CounterFile [0.12] Persistent counter class 12. Font-AFM [1.18] Interface to Adobe Font Metrics files 13. HTML-Parser [3.26] HTML parser class 14. HTML-Tagset [3.03] Data tables useful in parsing HTML 15. HTML-Tree [3.11] HTML syntax tree builder 16. libwin32 [0.20] A collection of extensions that aims to p~ 17. libwww-perl [5.68] Library for WWW access in Perl 18. MD5 [2.02] Perl interface to the MD5 Algorithm (obso~ 19. PPM3 [3.1] Perl Package Manager: locate, install, up~ 20. SOAP-Lite [0.55] Library for Simple Object Access Protocol~ 21. Tk [800.024] A Graphical User Interface Toolkit Thanks for any help, Peter ---------------------------------------------------------------------- Peter Wright Software Development Telekurs Financial AG, Hardturmstr.201, CH-8021 Zurich, Switzerland Tel: +41-1-2795159 Fax: +41-1-4465678 Email: [EMAIL PROTECTED] ----------------------------------------------------------------------
