OpenSSL error
Posted: Sun Nov 21, 2010 8:48 am
Hi
I develop a system using OPenSSL for Rijndael-256 (RSA-256) encryption. It works weel on an Apache server with PHP 5.3.2 on Windows and on a Linux server.
But, on a Mac, I experience a weird problem.
When I send a block to be decrypted, it works some times, and, without any reason, it stops and stays blocked for a while. And suddenly, it works again.
When it crashes, I have the error message :
I searched on Google and couldn't really find any solution. I read it seemed to be related to the keys format.
The public key used for encryption is like :
And the private is like :
Has anybody met that problem before and/or know where it comes from and how to fix it ?
Thanks
I develop a system using OPenSSL for Rijndael-256 (RSA-256) encryption. It works weel on an Apache server with PHP 5.3.2 on Windows and on a Linux server.
But, on a Mac, I experience a weird problem.
When I send a block to be decrypted, it works some times, and, without any reason, it stops and stays blocked for a while. And suddenly, it works again.
When it crashes, I have the error message :
Code: Select all
Wrong request for connection error:0906D06C:PEM routines:PEM_read_bio:no start lineThe public key used for encryption is like :
Code: Select all
-----BEGIN PUBLIC KEY-----
...
-----END PUBLIC KEY-----
Code: Select all
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
Thanks