Error keytool: java.io.FileNotFoundException: C: \ cacerts (Access denied)

I am on Windows 10 with JRE8, and the command I use is:

C:\Program Files\Java\jre1.8.0_60\bin>keytool -keystore "C:\cacerts" -storepass changeit -importcert -file "C:\Users\MyUser\Desktop\sf.cer" -alias Symantec_Secure_Server_Class_3

Here is what I have tried so far:

  • Giving the cacerts file full access to my user (although I am an administrator)
  • Ran keytool as system administrator in cmd
  • Put cacerts in different locations (even tried C: \ cacerts)

I keep getting the same error:

The certificate was added to keystore keytool error: java.io.FileNotFoundException: C: \ cacerts (access denied)

What else can I do to import this certificate into my cacerts file?

+4
source share
4

+8

: D:\tmp C:\tmp ( root).

+1

Windows 8 JRE7, !

UPDATE: Windows cacerts. , !

+1

.

0

Source: https://habr.com/ru/post/1605851/


All Articles