How to create a digital certificate and export to .p12 file in PHP?
I want the .p12 file to have private key included. And also want to check whether the key pair is already issued (logged in database).
I found a function called 'openssl_pkcs12_export_to_file' but don't know where to start. Seems that I need an X509 cert and a private key first.
Creating a self-signed-certificate: