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