Hi,
It used to be working but somehow it failed now anyway, not sure if due
to the lastest build/installation,
In the openfire plug in I am working on function sendRequest invokes
RESTFul API to query the contact info via https. Here is what the
exception looks like.
2009.11.10 21:45:22
[org.sipfoundry.openfire.plugin.userprofile.RestInterface.sendRequest(Re
stInterface.java:103)] IOException Connection refused
2009.11.10 21:45:59
[org.sipfoundry.openfire.plugin.userprofile.RestInterface.sendRequest(Re
stInterface.java:103)] IOException
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
In the plug in, the keystore/certstore are initiated when the plug in is
loaded.
private void initTLS()
{
// Setup SSL
String path = getConfDir();
String keyStore = path+"/ssl/ssl.keystore";
System.setProperty("javax.net.ssl.keyStore", keyStore);
System.setProperty("javax.net.ssl.keyStorePassword",
"changeit");
String trustStore = path+"/ssl/authorities.jks";
System.setProperty("javax.net.ssl.trustStore",
trustStore);
System.setProperty("javax.net.ssl.trustStoreType",
"JKS");
System.setProperty("javax.net.ssl.trustStorePassword",
"changeit");
}
Any pointer is appreciated!
Thanks
Jason
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/