Somebody has got an idea ?
For your your information I tried for my testkeys:
keytool -genkey -keystore testkeys -alias footcrix
keytool -export -alias footcrix -file footcrix.cer -keystore testkeys
keytool -keystore /usr/local/j2sdk1.4.2_07/jre/lib/security/cacerts
-import -file footcrix.cer -alias footcrix
keytool -list -keystore
/usr/local/j2sdk1.4.2_07/jre/lib/security/cacerts -alias footcrix
Tapez le mot de passe du Keystore : changeit
footcrix, 22 juin 2005, trustedCertEntry,
Empreinte du certificat (MD5) :
A2:0F:8C:95:86:0D:AF:DD:FA:3D:F1:0F:85:0B:D5:B6
Can you tell me why I have :
Error: sun.security.validator.ValidatorException: No trusted certificate
found
Thanks for your Help !
Eric
Eric BOYER a écrit :
Thanks for all your answers !
My server is apparently OK ...
But My client says :
Avoiding obscuring previous error by supressing error encountered
while ending request: org.apache.xmlrpc.XmlRpcClientException:
Exception closing URLConnection
Error: sun.security.validator.ValidatorException: No trusted
certificate found
And My server says :
javax.net.ssl.SSLHandshakeException: Received fatal alert:
certificate_unknown
My client code is :
"
public static void main(String arguments[]) {
ClientBonjourSecure client = new ClientBonjourSecure();
try {
client.readEntries();
} catch (IOException ioe) {
System.out.println("IO Exception: " + ioe.getMessage());
ioe.printStackTrace();
} catch (XmlRpcException xre) {
System.out.println("XML-RPC Exception: " + xre.getMessage());
}
}
public void readEntries() throws IOException, XmlRpcException {
SecureXmlRpcClient client = new
SecureXmlRpcClient("https://footcrix:10500/RPC2");
Vector params = new Vector();
params.addElement("Eric");
try
{
String res = (String)
client.execute("bonjour.disMoiBonjour",params);
System.out.println(res);
}
catch (Exception ex)
{
System.err.println("Error: " + ex.getMessage());
}
}
May be I didn't produced my testkeys correctly ? :
keytool -genkey -keystore testkeys
Thanks again for your help !
Eric