Update installation.md

Changing recommended bit length of RSA keys to 2048 as per NIST recommendations
This commit is contained in:
Andrew Millington 2017-12-23 13:44:34 +00:00 committed by GitHub
parent e160a1c148
commit bb998ae041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,13 @@ The repositories are expected to return (on success) instances of [entity interf
To generate the private key run this command on the terminal:
{% highlight shell %}
openssl genrsa -out private.key 1024
openssl genrsa -out private.key 2048
{% endhighlight %}
If you want to provide a passphrase for your private key run this command instead:
{% highlight shell %}
openssl genrsa -passout pass:_passphrase_ -out private.key 1024
openssl genrsa -passout pass:_passphrase_ -out private.key 2048
{% endhighlight %}
then extract the public key from the private key:
@ -58,4 +58,4 @@ To generate an encryption key for the `AuthorizationServer` run the following co
{% highlight shell %}
php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'
{% endhighlight %}
{% endhighlight %}