Hi there,
I am trying to extract my PrivKey and store in a var, with the method
http://php.net/manual/en/function.openssl-pkey-get-private.php but it stores
the result as "Resource id #7".
Code sample:
$passphrase="mypass";
$fp = fopen("../apache/bin/privkey.pem", "r");
$priv_key = fread($fp, 8192);
fclose($fp);
$pkeyid = openssl_pkey_get_private(array($priv_key, $passphrase));
echo "PKEY: </br>";
echo $pkeyid;
I'd appreciate if anyone could help, thank you!
--
View this message in context:
http://old.nabble.com/How-to-save-privkey-tp30133998p30133998.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]