note 30227 deleted from function.openssl-get-privatekey by danbrown

From: Date: Wed, 06 Oct 2010 16:26:13 +0000
Subject: note 30227 deleted from function.openssl-get-privatekey by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173032@lists.php.net to get a copy of this message
Note Submitter: promisc at hotmail dot com ---- A part of the script above doesnt works: ... $fp=fopen("/path/to/private.key","r"); $priv_key=fread($fp,8192); fclose($fp); // $passphrase is required if your key is encoded (suggested) $res = openssl_get_privatekey($priv_key,$passphrase); ... This should works: // $passphrase is required if your key is encoded (suggested) $res = openssl_get_privatekey("file:///path/to/private.key",$passphrase);

« previous php.notes (#173032) next »