获取通过http传递的httpsencryption数据

我想configurationtomcat工作的HTTPS端口8443。

使用tomcat 7。

我使用以下参数启用了https连接器:

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" keystorePass="<pass>" maxThreads="150" scheme="https" secure="true" keystoreFile="${catalina.base}/foo/bar.keystore" clientAuth="false" sslProtocol="TLS" /> 

我用密码和域名创build了一个密钥库。

当我启动tomcat并浏览pipe理面板或使用端口8443我的jsp页面时,我得到scrumbled不明身份的数据。 这意味着我得到了通过http传递的httpsencryption数据。 当我浏览端口8080我正确地看到它。 我错过了什么?

谢谢!

幼狮

更新

我在server.xml中有这个configuration

  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 

我在日志中有这个:

 May 02, 2013 5:57:45 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/package 

所以也许这是问题。

这只是一个信息,所以我忽略了它。 但也许是因为缺lessAPR SSLEngine不起作用。

我有gentoo Linux和我有APR软件包安装我不知道为什么它不检测它。

它看起来不像你有任何错误的configuration。 但是,您可能需要在URL中明确指定协议以及端口,例如。 https://your.server:8443 。 如果端口不是443并且未指定HTTPS,则大多数应用程序(浏览器等)将推断HTTP。

也可以在浏览器的URL中明确地指定http://来查看它是否呈现。 不过,我会感到惊讶的。 看起来您已经正确启用了TLS。

缺lesstomcat本地库不是原因。