Create a secret for a Compute (host) scan recipe to store the Qualys license information.
Prerequisites:When you create a Compute scan recipe with a Qualys agent, you must add an existing secret from a vault or define a new secret while creating the recipe. When you edit an existing Compute scan recipe with a Qualys agent, you can also edit the secret.
This page provides steps for defining a secret during the task for Creating a Compute Scan Recipe or Editing a Compute Scan Recipe. To create a secret outside of these tasks, see Creating a Secret in a Vault.
-
In the Oracle Cloud Console, in the Create scan recipe or the Edit compute scan recipe panel, select a vault in which to create the secret.
-
Under Define a secret, select Create new.
- (Optional)
On the Create secret panel, create the secret in the compartment shown or select another compartment.
-
Enter a name and description for the secret.
-
Choose an encryption key. Change the compartment, if necessary.
-
In a separate browser window, sign in to the Qualys dashboard.
-
Copy the license code and store it in a safe place.
-
Generate a cloud agent activation key and enable OCI for the agent.
Note You must have a Qualys license to generate a cloud agent activation key. If you don't have a license code, you need to create one using the Qualys platform. To get a license, see the
prerequisites at the beginning of this topic.
-
Return to the Oracle Cloud Console.
-
Select the secret template for your secret. The secret template that you select depends whether the secret is already Base64-encoded. If you know that the secret is already Base64-encoded, select Base64. If you know that the secret isn't Base64-encoded, select Plain-Text. Use the following examples as a guide:
-
If the secret looks like the following example, select Plain-Text:
{"cid":"qualys-customer-id","aid":"qualys-account-id", "pwsUrl":"https://qualys-endpoint/CloudAgent","pwsPort":"port-num"}
-
If the secret looks like the following example, select Base64:
eyJjaWQiOiJxdWFseXMtY3VzdG9tZXItaWQiLCJhaWQiOiJxdWF seXMtYWNjb3VudC1pZCIsInB3c1VybCI6Imh0dHBzOi8vcXVhbHlzLWVuZHBvaW50L0Nsb 3VkQWdlbnQiLCJwd3NQb3J0IjoicG9ydC1udW0ifQ==
-
In the Create secret window, add secret contents. Paste the secret contents for the license code that you have copied from the Qualys dashboard.
-
Select Create secret.