note 116559 deleted from function.openssl-pkey-get-private by salathe
| From: | salathe@php.net | Date: | Fri, 06 Feb 2015 13:01:37 +0000 |
| Subject: | note 116559 deleted from function.openssl-pkey-get-private by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-201608@lists.php.net to get a copy of this message | ||
Note Submitter: Nsajigwa M
----
just a little addition note on this, especially on getting the link to the private key.
For example, am using plesk server, and my certificate is located in httpdocs folder. the line to
the certificate would be:
<?php
$mycert = '/var/www/vhosts/mydomain.com/httpdocs/certificate.pem';
openssl_pkey_get_private('file://'.$mycert);
?>
for which in this case it'll have three '/' not two