note 28578 added to function.openssl-pkey-get-private

From: Date: Fri, 17 Jan 2003 09:58:24 +0000
Subject: note 28578 added to function.openssl-pkey-get-private
Groups: php.notes 
Request: Send a blank email to php-notes+get-42261@lists.php.net to get a copy of this message
Trying for hours to get openssl_pkey_get_private to load my private key (no problems with openssl_pkey_get_public) I found that the following loaded the private key correctly: $passphrase="test"; $priv_key_file_name = ("./private.pem"); if (openssl_pkey_get_private(array("file://$priv_key_file_name", $passphrase))) { print "\nPrivate Key OK\n\n"; } else { print "\nPrivate key NOT OK\n\n"; } -- http://www.php.net/manual/en/function.openssl-pkey-get-private.php http://master.php.net/manage/user-notes.php?action=edit+28578 http://master.php.net/manage/user-notes.php?action=delete+28578 http://master.php.net/manage/user-notes.php?action=reject+28578

« previous php.notes (#42261) next »