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

RESOLVED FIXED

Status

Cloud Services
General
RESOLVED FIXED
10 years ago
9 years ago

People

(Reporter: Aleksander Adamowski, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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:

Comment 1

10 years ago
I have the same problem.  Weave 1.3 on FF3

Comment 2

10 years ago
We have now (as of 0.1.32) switched away from openssl, and are using the NSS library included in Firefox.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED

Updated

9 years ago
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.