Openssl and PHP

后端 未结 3 677
攒了一身酷
攒了一身酷 2021-01-06 01:50

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

3条回答
  •  日久生厌
    2021-01-06 02:36

    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.

提交回复
热议问题