-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Ribe wrote:
| Thanks Tom for the help.
Hello Dan,
|
| It seems that there is some problem with the private key which I am
| passing. With your key or newly generated key this logic works fine. Now
| the error which I am getting is like :
|
| OpenSSL error: error:0906D066:PEM routines:PEM_read_bio:bad end line
|
| And last lines of my keys are like :
|
|     "09dirkd+sRoXWShF8ctVVb4B1PAFTOBEa8diickehnAyEq6KhzLWpQqhqCnylETw\r\n"
|     "Drys2uVaAzmRhS6tGJ2fdwPnlSLJrQbHuP938BkyxNhdYN8drfqb\r\n";
|     "-----END RSA PRIVATE KEY-----\r\n";
|
| I have seen that the key which you are using or which I have generated
| has "==" at the end, the same is not true with my current private key
| (end lines above).

Which end line do you mean ?
The end line ending with "drfqb\r\n";
(Which is the end of this string)

Or the end line "-----END RSA PRIVATE KEY-----\r\n";
(Which ends an base64 coded RSA private key)

;-)

The "==" at the end of the other key was only padding:
base64 uses 4 bytes to store 3 bytes of data, so if the data
has a length not a multiple of 3, the end is padded with "="s.

Goetz

- --
DMCA: The greed of the few outweighs the freedom of the many
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI48s92iGqZUF3qPYRAktrAJ49Md8FOiQtYM9RMS9PBmCDppiUygCfX89/
Vp8hD7Kn4Yy/6CO7K5Ii9VA=
=wrDv
-----END PGP SIGNATURE-----
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to