keytool error

J

John Smith

I'm trying to import a keytool and i get this error message

keytool error: java.io.FileNotFoundException:
C:\j2sdk1.4.2\jre\lib\security" (The filename, directory name, or volume
label syntax is incorrect)


this is the command i typed:

C:\>keytool -import -trustcacerts -file "C:\TrustedRootCert.der" -keystore
"C:\j2sdk1.4.2\jre\lib\security\"

this is what happens:

Trust this certificate? [no]: yes
Certificate was added to keystore
keytool error: java.io.FileNotFoundException:
C:\j2sdk1.4.2\jre\lib\security" (The filename, directo
ry name, or volume label syntax is incorrect)
 
S

Sudsy

John said:
I'm trying to import a keytool and i get this error message

keytool error: java.io.FileNotFoundException:
C:\j2sdk1.4.2\jre\lib\security" (The filename, directory name, or volume
label syntax is incorrect)


this is the command i typed:

C:\>keytool -import -trustcacerts -file "C:\TrustedRootCert.der" -keystore
"C:\j2sdk1.4.2\jre\lib\security\"

The keystore argument should point to a FILE, not a DIRECTORY.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top