I am using following command to import the certificate in KeyStore:
"%JAVA_HOME%"\bin\keytool -importcert -trustcacerts -alias c:\cacert-Service -file c:\e-Service.cer -keystore "%JAVA_HOME%"\jre\lib\security\cacerts
it asked for a password, and show the following result on CMD:
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files (x86)\Java\jdk1.6
.0_20\jre\lib\security\cacerts (Access is denied)
What is going wrong?