Using keytool
command or some other non-programmatic way I want to check whether given certificate is present in Java's keystore or not. I know programmatic way but I want to achieve same from either keytool
command or some other non-programmatic way. I know how to view certificates in present in keystore, checking their alias etc. but all this doesn't help me to ensure that given certificate is present in keystore. Is there any way?
I have already read this question and these are not duplicated because that is to check "certificate name and alias in keystore files", I don't want to check that, I want to ensure that given certificate is present in keystore so that my communication will be successful when I communicate with the server which will return the given certificate; a given certificate could have same alias but its finger print would be different if it is not same certificate.