mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-24 14:09:49 +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:
|
To generate the private key run this command on the terminal:
|
||||||
|
|
||||||
{% highlight shell %}
|
{% highlight shell %}
|
||||||
openssl genrsa -out private.key 1024
|
openssl genrsa -out private.key 2048
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
If you want to provide a passphrase for your private key run this command instead:
|
If you want to provide a passphrase for your private key run this command instead:
|
||||||
|
|
||||||
{% highlight shell %}
|
{% highlight shell %}
|
||||||
openssl genrsa -passout pass:_passphrase_ -out private.key 1024
|
openssl genrsa -passout pass:_passphrase_ -out private.key 2048
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
then extract the public key from the private key:
|
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 %}
|
{% highlight shell %}
|
||||||
php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'
|
php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
Loading…
Reference in New Issue
Block a user