SuiteCRM-Core/lib/API/OAuth2/README.md
Dillon-Brown 8e4cc94994 Squashed 'public/legacy/' content from commit 817a12dc0
git-subtree-dir: public/legacy
git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
2021-03-31 15:37:32 +01:00

448 B

OAuth 2 Server

Generating public and private keys

To generate the private key run this command on the terminal: openssl genrsa -out private.key 1024

extract the public key from the private key: openssl rsa -in private.key -pubout -out public.key

Generating encryption keys

To generate an encryption key for the AuthorizationServer run the following command in the terminal:

php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'