Generate RSA keys:
cd src/main/resources/local/secrets/
openssl genrsa > local.private.key
openssl rsa -in local.private.key -pubout > local.public.keyFor macOS (maybe windows) users run 1 more command:
openssl pkcs8 -topk8 -inform PEM -outform PEM -in local.private.key -out local.private.pkcs8.key -nocryptthen change secret-key-file in application.yml to secret-key-file: classpath:local/secrets/local.private.pkcs8.key
POST http://localhost:8500/api/users
Content-Type: application/json
{
"login": "testuser",
"password": "testpassword"
}
POST http://localhost:8500/api/auth/authenticate
Content-Type: application/json
{
"login": "testuser",
"password": "testpassword"
}