>> Make sure to be root/admin user while accessing the terminal/command prompt
>> Navigate to %JAVA_HOME%/jre/lib/security and give the command,
keytool -delete -alias server-alias -keystore cacerts
server-alias is my alias key.
Issue with access:
if you have issue with accessing the file then copy the cacerts file to some directory free of permissions, and apply the above command there & then copy the cacerts back to %JAVA_HOME%/jre/lib/security and overwrite it.