I'm trying to import a security certificate so that I can send requests to a server, following the steps here.
http://www.grim.se/guide/jre-cert
I enter the following command at the Windows command prompt.
keytool -import -alias sunas -keystore "C:\Program Files\Java\jre1.8.0_91\lib\security\cacerts" -file C:\Users\dan.moore\Desktop\V-CLOUD-ROOT-CA.der
I'm then prompted for a password, which I enter as "changeit".
Then this happens -
Trust this certificate? [no]: y
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jre1.8.0_91\lib\security\cacerts (Access is denied)
Since access was denied, I assume I don't have write privileges to the JRE. How can I get this? Thank you!