Cubox openssl error

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Cubox openssl error

Postby pacapona » Thu Feb 21, 2013 11:51 pm

Hi

I have an issue with openssl on cubox.

The first sign of a problem is a curl error on yaourt output:
$this->bbcode_second_pass_code('', '
yaourt -Syua
:: Synchronisation des bases de données de paquets...
core est à jour ;
extra est à jour ;
community est à jour ;
alarm est à jour ;
aur est à jour ;
curl error: SSL connect error
')
Curl to get an https page:
$this->bbcode_second_pass_code('', '
curl https://google.ch
curl: (35) error:1409441B:SSL routines:SSL3_READ_BYTES:tlsv1 alert decrypt error
')
And wenn i try to creat a self-signed certificate:
$this->bbcode_second_pass_code('', '
openssl genrsa -des3 -out server.key 1024 --> OK
openssl req -new -key server.key -out server.csr --> OK
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key --> OK
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt --> NOT OK !
Signature verification error
3069396176:error:0D0C50C7:asn1 encoding routines:ASN1_item_verify:unknown signature algorithm:a_verify.c:154:
')
I don't no if i'm the only one with this problem but it's would be a surprise for me if i the only one with this problem...
My system run on an fresh install and is up to date...

Any idee?

Encrypt and decrypt file seem to be working:
$this->bbcode_second_pass_code('', '
openssl des3 -in toto.test -out toto.test.encrypted --> OK
openssl des3 -d -in toto.test.encrypted -out toto.test.decrypted --> OK
')
pacapona
 
Posts: 5
Joined: Thu Feb 21, 2013 11:33 pm

Re: Cubox openssl error

Postby pacapona » Fri Feb 22, 2013 2:36 am

The problem come from the hardward acceleration implementation from the openssl-cryptodev packet.
Install openssl without hardward accel and the bug go out... But i thing it will be better to resolve the problem from the openssl-cryptodev packet...
pacapona
 
Posts: 5
Joined: Thu Feb 21, 2013 11:33 pm

Re: Cubox openssl error

Postby pepedog » Fri Feb 22, 2013 11:16 am

It's best to replace openssl-cryptodev with openssl until this is resolved
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cubox openssl error

Postby kmihelich » Fri Feb 22, 2013 9:46 pm

New version of openssl-cryptodev is in the repositories, matches version of the normal openssl. Give that a shot and see if things work on there.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cubox openssl error

Postby pacapona » Fri Feb 22, 2013 10:02 pm

$this->bbcode_second_pass_quote('kmihelich', 'N')ew version of openssl-cryptodev is in the repositories, matches version of the normal openssl. Give that a shot and see if things work on there.


The new version "openssl-cryptodev 1.0.1.e-3" give me the same error as the older... But i have only make the 2 test with curl and i don't have trying to make another certificate...
pacapona
 
Posts: 5
Joined: Thu Feb 21, 2013 11:33 pm

Re: Cubox openssl error

Postby kmihelich » Fri Feb 22, 2013 10:14 pm

Your /dev/cryptodev device on the system is world read/writable (mode 666), correct?
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cubox openssl error

Postby pepedog » Sat Feb 23, 2013 12:31 am

I don't have that node, just /dev/crypto (666)
What's this note (on older kernel)?
https://github.com/rabeeh/linux-2.6.32.9/tree/master/cesa/openssl
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cubox openssl error

Postby kmihelich » Sat Feb 23, 2013 12:34 am

You're right, its /dev/crypto. OCF is just another subsystem implementation of the same goal. I looked into way back when we were integrating all this into the kirkwood kernel, and the cryptodev source package we use is a lot simpler, cleaner, and until now worked without issue.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cubox openssl error

Postby pacapona » Sat Feb 23, 2013 2:18 am

Only /dev/crypto
and yes 666

Not sur but i think the bug was comming wenn i have updated the kernel...
pacapona
 
Posts: 5
Joined: Thu Feb 21, 2013 11:33 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 4 guests