Warning: openssl_private_decrypt(): key parameter is not a valid private key 

In this tutorial i’m going to solve openssl_private_decrypt(): key parameter is not a valid private key. So follow your below code. Now Decryption is working successfully.