I have a key store file cacerts under jre/lib/security in which i added a Certicate by using the import command.
There are more than 50 certificates in my keystore. How do i find the alias name of the last imported certificate in the keystore. I want to delete the last added certificate for which i need the alias name. Kindly help.
You can list all certificates in the keystore like
on Linux
keytool -list -v -keystore keystore.jks | grep "Alias name\|Creation date"
on Windows
keytool -list -v -keystore keystore.jks | findstr "Alias Creation"