mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-24 05:59:48 +05:30
Update installation.md
Changing recommended bit length of RSA keys to 2048 as per NIST recommendations
This commit is contained in:
parent
e160a1c148
commit
bb998ae041
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user