Closed Bug 439557 Opened 16 years ago Closed 16 years ago

Service.Main ERROR "openssl did not run successfully, error code 1" - digital envelope routines:EVP_DecryptFinal_ex:wrong final block length

Categories

(Cloud Services :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aleksander.adamowski, Unassigned)

Details

I'm using weave 0.1.30 and all sync attempts end with this error in activity log:

2008-06-17 02:08:25	Service.Crypto	DEBUG	Decrypting data
2008-06-17 02:08:25	Service.Util	DEBUG	Running command: /home/olo/.mozilla/firefox/i37rum9m.default/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /home/MYUSERNAME/.mozilla/firefox/MYPROFILEDIR.default/weave/tmp openssl aes-256-cbc -d -a -salt -in input -out output -pass file:pass
2008-06-17 02:08:25	Service.Main	ERROR	openssl did not run successfully, error code 1


I've modified the script extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh to log some debug information related to the openssl execution:

==================
#!/bin/sh
umask 077
timestamp=$(date +%F_%H_%M_%S)
echo "$@" >> $HOME/tmp/weave_openssl_$timestamp.log 2>> $HOME/tmp/weave_openssl_$timestamp.log
cd "$1"
shift
exec $* >> $HOME/tmp/weave_openssl_$timestamp.log 2>> $HOME/tmp/weave_openssl_$timestamp.log
==================

Now it logs all openssl invocations and their output and the last one that fails outputs this:

/home/MYUSERNAME/.mozilla/firefox/MYPROFILEDIR.default/weave/tmp openssl aes-256-cbc -d -a -salt -in input -out output -pass file:pass
bad decrypt
13649:error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length:evp_enc.c:454:
I have the same problem.  Weave 1.3 on FF3
We have now (as of 0.1.32) switched away from openssl, and are using the NSS library included in Firefox.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: Weave → General
Product: Mozilla Labs → Weave
Target Milestone: -- → ---
QA Contact: weave → general
You need to log in before you can comment on or make changes to this bug.