Issue:
How to create WithSecure Elements Vulnerability Management API keys for authentication
Resolution:
An API key consists of an access key (for example, PA3IAKNANLM9) and a secret key (for example, UO9mkDEHFGa1Vau6o#1AfxwRmBQW@!qV). Note that the sample requests in this documentation show access and secret keys enclosed in braces, which must be omitted when you submit requests.
Follow the steps below to create an API key:
- Log in to the Elements Vulnerability Management portal.
- Click the user icon in the top-right corner of the page and select My profile.
- Scroll down to the Configure API Keys section.
- Add a new API key and store it safely.
- Apply the created API key to the HTTP header of every API request that requires authentication.
- Run a simple request to check the authentication:
curl -X GET https://api.radar.f-secure.com/api/integration/authenticationcheck
-H 'Content-Type: application/json'
-H 'ApiAccessKey: {ApiAccessKey}'
-H 'ApiSecretKey: {ApiSecretKey}'
If authentication was successful, you will get a HTTP response with status code 200 Authenticated.
Reference:
https://help.f-secure.com/product.html#business/radar/4.0/en/task_E974D4465373492480A62E0D65BAD5E2-4.0-en
Article no: 000018219