linux 下Tomcat 8 配置https 访问不了
08-Jul-2018 01:48:35.176 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'SSLProtocol' to 'TLSv1+TLSv1.1+TLSv1.2' did not find a matching property.
08-Jul-2018 01:48:35.260 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.51
08-Jul-2018 01:48:35.262 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 9 2018 21:20:15 UTC
08-Jul-2018 01:48:35.262 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.51.0
08-Jul-2018 01:48:35.262 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
08-Jul-2018 01:48:35.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.0-105-generic
08-Jul-2018 01:48:35.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
08-Jul-2018 01:48:35.263 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /opt/jdk1.8.0_171/jre
08-Jul-2018 01:48:35.264 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_171-b11
08-Jul-2018 01:48:35.264 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
08-Jul-2018 01:48:35.264 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat-9000
08-Jul-2018 01:48:35.265 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat-9000
08-Jul-2018 01:48:35.266 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat-9000/conf/logging.properties
08-Jul-2018 01:48:35.266 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
08-Jul-2018 01:48:35.266 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
08-Jul-2018 01:48:35.266 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
08-Jul-2018 01:48:35.267 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
08-Jul-2018 01:48:35.267 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat-9000
08-Jul-2018 01:48:35.267 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat-9000
08-Jul-2018 01:48:35.268 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat-9000/temp
08-Jul-2018 01:48:35.268 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
08-Jul-2018 01:48:35.471 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
08-Jul-2018 01:48:35.493 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
08-Jul-2018 01:48:35.495 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-bio-443"]
08-Jul-2018 01:48:35.914 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
08-Jul-2018 01:48:35.915 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
配置
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
keystoreFile="/usr/local/tomcat-9000/conf/cert/1531208406337.pfx"
keystoreType="PKCS12"
keystorePass="1531208406337"
clientAuth="false"
SSLProtocol="TLS"
/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
怎么解决的
protocol="org.apache.coyote.http11.Http11Protocol"改成protocol="HTTP/1.1"试试
错误日志已经告诉你了Setting property 'SSLProtocol' to 'TLSv1+TLSv1.1+TLSv1.2' did not find a matching property.