Im trying to load a private key generated by the openssl cli tool with PHP. I used the following command and PHP code:
openssl genrsa -des3 4096 -out
Please note that file://path/to/file.pem in documentation means file protocol + file path. In UNIX like OS, that is something like file:///rsa_private_key.pem. There is THREE slashes in the path string, not TWO. And file:// cannot be omitted.
file://path/to/file.pem
file:///rsa_private_key.pem
file://