Configuring RadSec on EOS¶
Arista Switches can form a RadSec tunnel using SSL encryption with AGNI. RadSec is a protocol that supports RADIUS over TCP and TLS. For mutual authentication it is required to install a client certificate with corresponding private key as well as your AGNI CA certificate. The steps below assumes the use of AGNI's internal PKI.
Follow the steps to create, upload and establish the RadSec tunnel.
- Generate private key and CSR
- Generate client certificate for the Switch in AGNI.
- Upload the Certificate to the Switch.
- Configure an SSL profile and and RadSec profile
AGNI Login¶
If you're not already logged into AGNI, navigate to the Arista Launchpad for your lab.
Configuration Steps¶
-
Generate the key pair
2. Generate the certificate signing request using the key just created.Common Name must correspond to the Switch MAC address and the DNS needs to match the hostname of the switch
Certificate Signing Request
Common Name for use in subject: 2c:dd:e9:fe:cd:68 Two-Letter Country Code for use in subject: US State for use in subject: FL Locality Name for use in subject: NFM Organization Name for use in subject: Arista Organization Unit Name for use in subject: acws Email address for use in subject: IP addresses (space separated) for use in subject-alternative-name: DNS names (space separated) for use in subject-alternative-name: pod00-leaf1a Email addresses (space separated) for use in subject-alternative-name: URIs (space separated) for use in subject-alternative-name: -----BEGIN CERTIFICATE REQUEST----- MIIC0DCCAbgCAQAwYTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkZMMQwwCgYDVQQH DANORk0xDTALBgNVBAoMBGFjd3MxDDAKBgNVBAsMA2NzZTEaMBgGA1UEAwwRMmM6 ZGQ6ZTk6ZmY6MzI6YjIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC1 UDFDsidF4qhGzIEgNUlcNPtfvAGic/hQelaD9MgvOUbbVUhEg0hcbA/LLcyZQ+f/ B0f/UK7eyuNhtS3lTYf7A1TqCQ7md8d4opcKbiP7vFg6+dpvAXT8giBlstv790LY wEpuCKX4igkLx+jMlNNOP7tKnuX2tuK/EYi20O2a0e4LR77ebBZpztiia9prCyvk neNhtAPMeb/O/kUBnmPwpPDy4jtpPhp8I+xX9zo4nRNjVlFcRRNao/N72kIpnmX8 nnAXIcG/I1bLsgspWIwwiV3MUL3pOKUNqXaKf824/ZJgPAtUA2zgp9JayMbbddOE A3dKTwBkGOXihZkVDTnrAgMBAAGgKjAoBgkqhkiG9w0BCQ4xGzAZMBcGA1UdEQQQ MA6CDHBvZDAwLWxlYWYxYTANBgkqhkiG9w0BAQsFAAOCAQEAp8pxdX1qJ8uPFrQW ZmMmOZ+RM3lEDOJkhNA2aRVonWeejp0bz5qToT8E41RPyLIdQ56Pa+zeGx5occg8 3nK3aFAu1ARPR1EJ8E04656c9v6zpF9np3juwLJm0uiM16XgUMvEmQd1anRELndn r53jlXKAcsKdFMSaW0MqXY6DN8a1PmI3KL0zzOKpwtcRSjvAXFTN8viSPOL/vrRL XTqVaa+P1d7PgRBoSi5DFY6U9nwHD42yP0kCbq98wxDrLyTfMV20ymY083XHdKPz Y4dI+YfHeK48QLBSLUKB9CrOC0XyhIMtCxBGkJ+umZy3wktZHCCkvDej7NoiNZal 4uEbIg== -----END CERTIFICATE REQUEST----- -
Copy the certificate including the text “-----BEGIN CERTIFICATE REQUEST-----” and “-----END CERTIFICATE REQUEST-----”
-
Select your Access Device from the list and select Get Client Certificate.
-
Select Use CSR (Single Device) and Paste CSR.
Note 1: CSR can also be uploaded from file by selecting action Upload CSR File
Note 2: For signing multiple CSRs select Upload Zip with multiple CSRs
-
Click Generate Certificate. A certificate
pod00-leaf1a.pemwill be generated and downloaded. Rename this file toswitch.pem -
Go to RadSec Setting in the Navigator under Administration section to download the CA certificate.
-
Download the RadSec CA certificate (radsec_ca_certificate.pem) by clicking Download Certificate.
In AGNI Click on
Configuration → System → RadSec Settingson the left hand side.Copy the FQDN
radsec.beta.agni.arista.ioandDownload the Certificateat the bottom. -
Copy certificates to the switch The certificate and root certificate need to be copied to the switch flash using SCP. Prerequisites: Settings on switch to be able to SCP over the certs. Provide a username and password with network-admin role. Ensure the following settings are configured on the switch:
10. Copy the certificates to the switch flash using SCP. 11. Login to your switch using thearistauser credentials and verify the certificates are present in the flash. 12. Copy the certificates to the certificate store. 13. Verify the certificate validity.




