我已经配置好了 但是不知道从哪里看客户端发过来的消息和文件麻烦你说下嘛 谢谢了 还是 我配置了tomcat支持ssl 可以从IE 访问:HTTPS://127.0.0.1:443 但是在程序中有问题我的方式是 用keytool 生成证书,然后在tomcat的server.xml中指定keystoreFile 和keystorePass 然后再用keytool导入到证书库然后再程序中指定 System.setProperty("javax.net.ssl.trustStore", certspath) System.setProperty("javax.net.ssl.trustStorePassword", certsPassword);但是从程序里不行 为什么? 异常为 java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Proxy Error ( Host was not found. For more information about this event, see ISA Server Help. )" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1324) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:168) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133) at th.main(th.java:61)从别人的机器上用IE也可以访问 但是异常为 :HTTPS hostname wrong :should be<xxx.xxx.xxx.xxx>(xxx.xxx.xxx.xxx为我的机器IP)能不能指教下
谢谢了
可以从IE 访问:HTTPS://127.0.0.1:443
但是在程序中有问题我的方式是 用keytool 生成证书,然后在tomcat的server.xml中指定keystoreFile 和keystorePass 然后再用keytool导入到证书库然后再程序中指定
System.setProperty("javax.net.ssl.trustStore", certspath)
System.setProperty("javax.net.ssl.trustStorePassword", certsPassword);但是从程序里不行 为什么?
异常为
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Proxy Error ( Host was not found. For more information about this event, see ISA Server Help. )"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1324)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:168)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
at th.main(th.java:61)从别人的机器上用IE也可以访问
但是异常为 :HTTPS hostname wrong :should be<xxx.xxx.xxx.xxx>(xxx.xxx.xxx.xxx为我的机器IP)能不能指教下