Really Simple SSL

Converting a private.pem private key to an private.key RSA private key

On some hosting environments, you are asked to provide an RSA private key, usually in the private.key format.

PHP does not offer an easy way to generate this, but on the command line this can be done very .

Open the terminal on your computer, then type the following (private.pem should be the path to the actual file):

openssl rsa -in private.pem -out private.key

The new private.key will will now be generated.

Rogier

Rogier

Related articles

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!