0
我非常新的證書,但我不得不這樣做(在Java中):獲取SSL上下文HttpsURLConnection的從x509證書
1)我有請求者的在我的手證書:
X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate");
2)我必須再次申請網址與證書(它甚至有可能),是這樣的:?
URL url = new URL(server);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
if (connection instanceof HttpsURLConnection) {
((HttpsURLConnection) connection).setSSLSocketFactory(???);
}
我的問題是:如何從1請求,從2鏈接證書))?
歡呼聲。
謝謝,我確實透露,以後不會有可能。 – tomek 2010-07-29 09:56:54