Delete imported certificate from Java keystore (cacert)

Delete certificate:
>> 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.

Advertisements
Delete imported certificate from Java keystore (cacert)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s