Search code examples
javacmdkeytool

Can not import a certificate in JVM from keytool


I have pasted a certificate file (i.e. tfs.cer) in the folder

C:\Program Files (x86)\IBM\WebSphere\AppServer\java_1.7_64\jre\lib\security

I am using this command to import the certificate

keytool -import -alias tfs -keystore  C:\Program Files (x86)\IBM\WebSphere\AppServer\java_1.7_64\jre\lib\security\cacerts  -file tfs.cer

on executing this I am getting this

enter image description here

Please help me , why this command in not getting executed properly. Thanks


Solution

  • Escape whitespaces in path parameter of keystore