Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I use OpenSSL to encrypt data asynchronously to the DB (client request, no way around it, i know it is not optimal to encrypt the data directly with the public/private keypair)
I assumed that it was common knowledge that OpenSSL makes it sometimes a bit cumbersome (at least the PHP implementation) to create a private key and store it to a file, as it requires in certain cases an X.509 certificate to do so. That makes is less straight forward as phpseclib. But what you pointed out is exactly what i was worried about (further from the hardware, newer). Thanks