SuiteCRM-Core/public/legacy/lib/API/OAuth2
2026-04-23 08:23:18 +01:00
..
Entities Merge next into suite 8 2026-04-23 08:23:18 +01:00
Exception Merge next into suite 8 2023-07-21 15:22:52 +01:00
Middleware Merge next into suite 8 2026-04-23 08:23:18 +01:00
Repositories Merge next into suite 8 2024-07-24 14:00:02 +01:00
.gitignore Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
.htaccess Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
Keys.php Merge next into suite 8 2023-07-21 15:22:52 +01:00
README.md Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01: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;'