Reply to php and openss functions

Your name:

Reply:


Posted by Harry Knitter on 06/29/05 11:00

Hello,

I´m trying to extract an private key from a server certificate.

$server_pwd="password";
$server_cert="/path/to/certificate";
$fp=fopen($server_cert,"rb");
$certificate=fread($fp,filesize($server_cert));
fclose($fp);
echo "<BR>$certificate";
echo "<BR>";
$key_id=openssl_get_privatekey($certificate,$server_pwd);
echo "<BR>";
echo openssl_error_string();

The certificate is read. Extraction of the private key fails, however.

openssl_error_string() tells:

error:0906D06C:PEM routines:PEM_read_bio:no start line

What´s wrong??

Thanks

Harry

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация