Hi,
i tried to use the methode exec from the Class Runtime to run certutil in java. 
The function of listing all certificates in a certain db(-L -d C:\test) works 
well. However, i cannot add any cert to the db, although it works when i do 
this from the command-line.
My code looks as follows:
                String cmdadd = "C:/nss3_10/certutil.exe " + 
                "–A –n nickName" + 
                " –t \"c,c,c\"" + 
                " –i " + "C:/cert_test/certName.der" +
                " -d " + "C:/cert_test";
Process p = Runtime.getRuntime().exec(cmdadd);

Has somebody had any experience with Nss tools and maybe encountered the same 
problem? I would appreciate any help or hint. Thank you!

best regard
ron
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to