Skip Menu |

This queue is for tickets about the VOMS-Lite CPAN distribution.

Report information
The Basics
Id: 62049
Status: resolved
Worked: 5 min
Priority: 0/
Queue: VOMS-Lite

People
Owner: mike.jones [...] manchester.ac.uk
Requestors: bart [...] sara.nl
Cc:
AdminCc:

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



Subject: Bad Initilisation Vector (salt)'; I can't unencrypt your key!
Date: Mon, 11 Oct 2010 16:43:50 +0200
To: "bug-VOMS-Lite [...] rt.cpan.org" <bug-VOMS-Lite [...] rt.cpan.org>
From: Bart Heupers <bart [...] sara.nl>
Hello, I would like to report a bug for VOMS-Lite 0.11, perl v5.10.1, Linux bart-laptop 2.6.32-25-generic-pae #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010 i686 GNU/Linux When I tried to start proxy-init for my certificate it said : Bad Initilisation Vector (salt)'; I can't unencrypt your key! After some debugging I discovered the salt was specified in lowercase in my userkey.pem file : cat userkey.pem Show quoted text
-----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,731a8694b9e6cd23 .... ... I changed line 243 in PEMHelper.pm from elsif ( $line =~ /^DEK-Info: (.*),(.*)$/ ) {$PEMEnc=$1; $SALT=$2} to elsif ( $line =~ /^DEK-Info: (.*),(.*)$/ ) {$PEMEnc=$1; $SALT=uc($2)} And then it worked, and I could create valid VOMS proxy certificates. Best regards, Bart Heupers
Now allowing lowercase salt strings when decrypting private keys. Fixed as of v 0.13 Thanks, Mike