× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I've a small web-app that is deployed and run in the websphere 6.1 app
server. This app has this simple piece of code:

HttpURLConnection conn = null;
try {
HttpURLConnection.setFollowRedirects(false);
conn = (HttpURLConnection) new
URL(redirect.getRedirectToURL()).openConnection();
conn.setRequestMethod("HEAD");
if (conn.getResponseCode() >= 400) {
throw new RedirectException("The Redirect-To URL (" +
redirect.getRedirectToURL() + ") is invalid.");
}
}
catch (RedirectException ex){
throw ex;
}
catch (Exception ex){
throw new RedirectException("The Redirect-To URL (" +
redirect.getRedirectToURL() + ") is invalid.");
}
finally {
if (conn != null) conn.disconnect();
}


On the fourth line where it performs the connection, it works fine if
the url is a http. But it failed if the url is a https. The error that
I'm getting is "com.ibm.jsse2.util.h: No trusted certificate found". If
I run above code as a stand alone java program, it works fine for http
and https. Does anyone know why or how I can avoid this error?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.