|
From: narcus s. <cmo...@ya...> - 2005-11-11 18:54:00
|
Hello!
As you may have noticed from the previous emails, I've
been struggling for the past couple of days with a
"bad_certificate" error during client auth.
At last I managed to resolve the problem - by editing
and recompiling the Hermes sources - and now
everything works wonderfully.
What I've done is basically:
********
-Switched all com.sun.net.ssl.* imports to
javax.net.ssl.*
- Commented out
"System.setProperty(PROTOCOL_HANDLER_PKGS, pkgs);" in
HTTP.configure()
- Replaced in KeyStoreKeyManager:
public String chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) {
for (int i = 0; i < keyType.length; i++) {
String alias =
chooseClientAlias(keyType[i], issuers);
if (alias != null) {
return alias;
}
}
return null;
}
with:
public String chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) {
return alias;
}
*******
OK, it's not JDK 1.3 compliant anymore, but hey, at
least it's working now :)
Regards,
Narcus
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
|