How i can ensure certificate(myAppCertificate.crt) i am importing to cacert already exists in cacert file or not?. For information i am importing the certificate with
keytool -import -alias myAppca -file myAppCertificate.crt -keystore cacerts -v
For testing purpose i tried to add the already existing certficate again in cacert file, but it did not give me any exception/warning that certificate already exist. Is there a way i can confirm whether certificate alreay exist or not before actually importing this?