02-19-2025 01:35 PM
Hello Cisco community,
I'm trying to discover a leaf but I got an error in the last check, which is ssl certificate:
Validity failed : certificate check start date in the future Cisco
When I checked the date of the leaf , it's not the right date, I tried to update the date in the leaf via bash and vsh using the commands :
Clock set ........
Date -s "..........*
And I tried to do it in the loader but it didn't works
Is there any workaround to resolve this issue ?
BR,
02-20-2025 01:39 AM
Hello @ayoubas
The issue you're encountering is related to the SSL certificate validation failing because the date on the leaf switch is incorrect. This can happen if the system clock on the device is not synchronized properly. Since you've already tried setting the date manually using clock set
and date -s
, and it didn't work, here are some additional steps and workarounds you can try:
The proper way to ensure the correct time on ACI leaf switches is to configure an NTP server in the APIC. This will propagate the correct time to all fabric nodes, including leaf switches.
Log in to the APIC GUI:
Navigate to the NTP Policy:
Create or Edit an NTP Policy:
pool.ntp.org
or your organization's NTP server).Associate the NTP Policy with the Fabric:
Verify NTP Synchronization:
show ntp
If NTP is not available and you cannot configure it via the APIC, you can try setting the date and time in the loader mode. This is a low-level method that can be used when the system clock is significantly out of sync.
Reboot the Leaf Switch:
Set the Date and Time in the Loader:
date MMDDhhmmYYYY
date 022010302025
Boot the System:
Verify the Date:
show clock
If you urgently need to proceed with the discovery process and cannot fix the date issue immediately, you can temporarily disable SSL certificate validation. This is not recommended for production environments but can be used as a temporary workaround.
Check the discovery tool or process you're using (e.g., Cisco APIC, ACI, etc.).
Look for an option to disable SSL certificate validation (e.g., a checkbox or a command-line flag like --insecure
or --no-check-certificate
).
Proceed with the discovery process.
Once the discovery is complete, re-enable SSL certificate validation and fix the date issue to avoid future problems.
If the date and time are not being retained or cannot be set, there may be an issue with the hardware clock (RTC - Real-Time Clock) on the leaf switch.
Check the Hardware Clock:
show clock detail
Synchronize the Hardware Clock:
clock update-calendar
Verify the Date and Time:
show clock
If none of the above methods work, there may be a software or firmware issue causing the clock to malfunction. Check the following:
Verify the Software Version:
show version
Upgrade the Software:
Check for Known Bugs:
Hope This Helps!!!
AshSe
Forum Tips:
02-20-2025 06:40 AM
Hello AshSe,
Thank you for your response.
This is a lab environment, and I don't have an NTP server available. All the commands you shared—whether in the loader, bash, or vsh—didn't work. I am using a virtual APIC running version 6.0(3e) on both the APIC and the Leaf.
Best regards,
02-25-2025 01:55 AM
Hello @ayoubas
Try to set the date and time in the APIC GUI using:
Good wishes!
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