keytool, IIS and SSL cert
Posted on 2006-05-03
I created a cert on II6 (win2003) by using selfssl.exe. This worked fine and automatically attached the cert in my IIS, so now i can run all my asp pages over ssl successfully. However there is one piece of my webapp that uses Java to request an ASP page over SSL. But this request breaks with the following error:
"sun.security.validator.ValidatorException: No trusted certificate found"
I have read a few sites that describe "keytool.exe" and its usages. I found mine here: C:\Program Files\Java\j2re1.4.2_01\bin\keytool.exe
I have 2 problems:
(1) I would have expected that, after running selfssl.exe, that a .cer file would have been created someplace. It wasn't. All the .cer files I can find are a month or more old, back from when I was experimenting with different cert-creation tools. Does selfssl.exe not create a .cer file? Should I look for some other kind of cert file?
(2) I'm a bit confused about exactly which cmd-line args I should be passing to keytool.
Summary: Need to know the easiest way to resolve the java error: "sun.security.validator.ValidatorException: No trusted certificate found"