0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-15 13:54:51 +00:00
salesagility_SuiteCRM/lib/API/OAuth2/README.md

15 lines
448 B
Markdown
Raw Permalink Normal View History

2017-10-02 16:30:46 +00:00
# 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;'