开发者社区> 问答> 正文

https无法访问

在腾讯、百度云里都申请了ssl证书
按照要求修改了 配置文件后 https加域名后就无法访问 http正常

web:tomcat-8.0.28
证书:jks/pfx 都尝试了
证书来源:腾讯云里申请、阿里云申请(轮流试)
修改地方: server.xml

 
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="150" keystoreFile="cert/214059385520733.pfx" keystorePass="********" keystoreType="PKCS12"  SSLEnabled="true" scheme="https" secure="true"
              

web.xml

<login-config>
    <auth-method>CLIENT-CERT</auth-method>
    <realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
  <web-resource-collection>
       <web-resource-name >SSL</web-resource-name>
       <url-pattern>/*</url-pattern>
  </web-resource-collection>
  <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
  </user-data-constraint>
</security-constraint>

server.xml
Host name="localhost" appBase="webapps"

        unpackWARs="true" autoDeploy="true">
    <Context path=""  docBase="/home/big/web/homesite" 

用的是root用户启停的

是个人网站

不知道还有那种情况没考虑到呢,为什么就打不开呢

非常感谢~

展开
收起
沈大 2017-03-30 17:55:39 12337 0
2 条回答
写回答
取消 提交回答
  • 此网站无法提供安全连接

    xxxxxxxxx不接受您的登录证书,或者您可能没有提供登录证书。
    请尝试联系系统管理员。
    ERR_BAD_SSL_CLIENT_AUTH_CERT

    2019-07-17 20:59:42
    赞同 展开评论 打赏
  • 旺旺:nectar2。

    题主您好,

    配置ssl证书后,启动tomcat会报错吗?

    如果不会报错,在浏览器里访问https地址,会有什么错误提示呢?

    2019-07-17 20:59:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
CDN助力企业网站进入HTTPS时代 立即下载
低代码开发师(初级)实战教程 立即下载