I can't instanciate my $pemkey whit a relative path in my php code. When I try to instanciate my key with openssl_pkey_get_private the program doesn't find it.
Here is my code :
$pemkey = openssl_pkey_get_private("file:///licensePrivateKey.pem");
if (! $pemkey ){
echo "ERROR - Unable to load signing key.";
die();
}
And here are my files :
- folder
- download_file.php
- licensePrivateKey.pem
(Sorry can't display images lol)