After you have created a LiveAssurance user for the device you want to add, From the Credentials Set list, click New+. Once you do, it would be good to name it immediately because once you click out of it, it will save the name as is. If that should happen, simply select the credential set you want to rename and click the Edit icon, and you should be able to rename it.
The following image shows the Credential Sets list, with the New and Edit icons highlighted.
After you have added the Set name in the List, you should then add the device credentials in the Credentials section by clicking New+, as shown in the following image.
After you have added the credentials, and the connection type, add the subnet you want to associate with the credentials.
- Bluecoat Proxy
- Cisco ASA
- FireEye NX
- Gigamon Gigavue
- Symantec CAS
Credential Set by a Sort Order
LiveAssurance uses credential sets by a sort order where it sorts by the bitmask of the subnets. For example, /32 will come before /28.
You can create multiple credential sets as follows:
- Default (0.0.0.0/0) using LiveAssurance user
- Narrower (/24) using LiveAssurance user
- Even narrower (/32) using indeni-admin
In this example, the system will use the credential in #3 with the username indeni-admin as a preference when connecting to a device. If the system cannot connect to the device using the credential in #3, it will try #2, then #1.
Configuring SSH Keys
While you can use a username/password to authenticate to a device, it is not the most secure. Instead, you can use SSH keys for authentication when connecting to a device. SSH keys not only improve security but also enable the automation of connected processes.
-
To ensure that your SSH key is in a format that LiveAssurance supports, use the following command to generate the SSH key:
ssh-keygen -b 4096 -t rsa -m PEM -f BCIAKeysThe generated keys are saved in their corresponding files that are automatically created based on the specified filename (that is, BCIAKeys for the private key and BCIAKeys.pub for the public key in this example).
-
You are prompted to enter a passphrase:
- If you choose to enter a passphrase, the private key file (BCIAKeys in this example) is encrypted.
- If you choose not to enter a passphrase, the private key is stored in plaintext.
-
A completion message is displayed.
-
Select the Devices tab in the sidebar, then select Credential Sets.
-
In the Credentials section, select New to create new credentials.
-
In the New Credentials window that is displayed, select SSH Private Key from the drop-down menu and complete the configuration as required.
Note:- The private key should be pasted in plaintext PEM format
(typically starting with a line similar to
–BEGIN PRIVATE KEY–). The private key data is kept on LiveAssurance in a highly confidential encrypted data store. - If you've entered a passphrase when generating the SSH keys, the
private key file is encrypted. However, as the private key must
be pasted in plaintext PEM format, use the following command to
convert the encrypted key to plaintext with OpenSSL:
openssl rsa -in BCIAKeys -out BCIAKeys.decoded - For Linux-based systems, the Public Key should be added to the
authorized_keysfile located at/home/<user>/.ssh/authorized_keysfor the device.
- The private key should be pasted in plaintext PEM format
(typically starting with a line similar to
-
Select Save.
The following image shows an example of the New Credentials window.
Configuring SNMP Credentials
Refer to 2.1 Creating Users on Vendor Devices for the specific vendor.
For example, refer to 2.1.9 Palo Alto Networks for instructions on how to add the credential sets.