10-04-2023 07:03 PM
Hello All,
How to check the DNAC SSL Certificate expiry date via CLI Command?
Regards,
Mohan Kumar
10-04-2023 07:38 PM
you can use opessl client to check the cert :
10-04-2023 09:17 PM
10-05-2023 07:56 PM
Cisco point of view CLI OLD fashion, better look API.
10-27-2023 11:20 PM - edited 12-04-2023 09:15 PM
To check the expiration date of the SSL certificate on a Cisco DNA Center (DNAC) appliance using the Command Line Interface (CLI), you can follow these steps:
1. Access the DNAC appliance via SSH or console cable.
2. Log in to the DNAC CLI with appropriate credentials.
3. Once you're logged in, you can use the following command to check the SSL certificate expiration date:
show crypto pki certificates <certificate-name>
Replace <certificate-name> with the actual name of the certificate you want to check. If you're not sure of the certificate name, you can use the following command to list all certificates:
show crypto pki certificates
Look for the certificate entry that corresponds to the DNAC's SSL certificate and note the "Valid from" and "Valid until" dates. The "Valid until" date is the certificate's expiration date.
Here's an example of what the output might look like:
Certificate
Status: Available
Certificate Serial Number: <serial-number>
Certificate Usage: General Purpose
Issuer: CN=Example CA
Subject: CN=dnac.example.com
Valid from: <start-date>
Valid until: <expiry-date>
Fingerprint: <fingerprint>
In the example above, you would be interested in the "Valid until" date, which indicates when the SSL certificate will expire.
Keep in mind that you may need administrative privileges to access this information, and it's essential to regularly check and renew SSL certificates before they expire to ensure secure communication with your DNAC appliance.
10-31-2023 01:17 AM - edited 11-02-2023 02:45 AM
To check the SSL certificate expiry date for Cisco DNA Center (DNAC) via CLI, use the command "show platform software security certificate detail." This command provides detailed information about the SSL certificate, including its validity and expiry date. Look for the "Valid From" and "Valid To" fields in the output to determine the certificate's start and expiry dates, allowing you to monitor and ensure the certificate's validity and a renewal as needed.
11-02-2023 03:14 PM
11-20-2023 10:49 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide