Skip Menu |
 

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 51232
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: Nobody in particular
Requestors: mathias.tausig [...] a-cert.at
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.57
Fixed in: (no value)



Subject: Unable to load a PKCS#12 file
Hy! If I try to use a PKCS#12 file with crypt::sleay (actually, I want to use it with Soap::Lite, crypt::ssleay wotks just as a backend), I receive an error, that the file can't be loaded. The failure happens in the function use_pkcs12_file in configure_certs. The openssl error when printed is: 500 configure certs failed: : error:06074079:digital envelope routines:EVP_PBE_CipherInit:unknown pbe algorithm | error:23077073:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 algor cipherinit error | error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error | error:23076072:PKCS12 routines:PKCS12_parse:parse error at ./test.pl line 15 The problem seems to be, that the neccesary cipher algorithms are not loaded by SSLeay.so. I have created a patch, which includes a single "OpenSSL_add_all_agorithms" to the SSL_CTX_new function in SSLeay.xs. Using this patch, everything works as expected. My system's configuration: openSuse 11.0, perl 5.10.0, Crypt::SSLeay 0.57, openssl-fips-1.2 (which is based, I believe, on openssl-0.9.8j) cheers Mathias
Subject: ssleay_addall.patch
Download ssleay_addall.patch
text/x-diff 775b
Nur in Crypt-SSLeay-0.57.patched/: blib. Nur in Crypt-SSLeay-0.57.patched/: pm_to_blib. Nur in Crypt-SSLeay-0.57.patched/: SSLeay.bs. Nur in Crypt-SSLeay-0.57.patched/: SSLeay.c. Nur in Crypt-SSLeay-0.57.patched/: SSLeay.o. diff -rup Crypt-SSLeay-0.57/SSLeay.xs Crypt-SSLeay-0.57.patched//SSLeay.xs --- Crypt-SSLeay-0.57/SSLeay.xs 2009-11-09 14:59:56.000000000 +0100 +++ Crypt-SSLeay-0.57.patched//SSLeay.xs 2009-11-09 14:59:44.000000000 +0100 @@ -106,6 +106,7 @@ SSL_CTX_new(packname, ssl_version) if(!bNotFirstTime) { SSLeay_add_ssl_algorithms(); + OpenSSL_add_all_algorithms(); SSL_load_error_strings(); ERR_load_crypto_strings(); SSL_library_init(); Nur in Crypt-SSLeay-0.57.patched/: SSLeay.xs~.
This patch is included in 0.57_1. -- Sinan


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.