当前位置: 首页 > 编程笔记 >

Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法

司空锋
2023-03-14
本文向大家介绍Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法,包括了Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法的使用技巧和注意事项,需要的朋友参考一下

今天同事要求帮忙配置tomcat ssl,直接把linux下tomcat配置ssl这篇文章发给他了,没想到他居然说启动tomcat的时候,报Connector attribute SSLCertificateFile must be defined when using SSL with APR的错误,马上跑过去看,原来他的tomcat版本是7.0的,我发给他的是tomcat6的,检查了key,检查了配置文件,因为他直接复制的我发他文章的配置,折腾了2-3个小时,终于把问题给解决了.

系统:windows 7
环境:tomcat7

1.先重新给他生成key


keytool -genkey -alias tomcat -keyalg RSA

Enter keystore password:  password Re-enter new password: password What is your first and last name?   [Unknown]:  Loiane Groner What is the name of your organizational unit?   [Unknown]:  home What is the name of your organization?   [Unknown]:  home What is the name of your City or Locality?   [Unknown]:  Sao Paulo What is the name of your State or Province?   [Unknown]:  SP What is the two-letter country code for this unit?   [Unknown]:  BR Is CN=Loiane Groner, OU=home, O=home, L=Sao Paulo, ST=SP, C=BR correct?   [no]:  y   Enter key password for     (RETURN if same as keystore password):  password Re-enter new password: password


2.tomcat配置ssl

打开server.xml文件里,他们原来是


<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" enableLookups="false"

           acceptCount="100" disableUploadTimeout="true"

           maxThreads="150" scheme="https" secure="true"

           clientAuth="false" sslProtocol="TLS"

           keystoreFile="Users\loiane/.keystore"

           keystorePass="password" />

修改为:


<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"

           enableLookups="false"

           acceptCount="100" disableUploadTimeout="true"

           maxThreads="150" scheme="https" secure="true"

           clientAuth="false" sslProtocol="TLS"

           keystoreFile="Users\loiane/.keystore"

           keystorePass="password" />

 类似资料:
  • 本文向大家介绍Android Studio 报错“app:processDebugResources"解决方法,包括了Android Studio 报错“app:processDebugResources"解决方法的使用技巧和注意事项,需要的朋友参考一下 Android Studio 报错“app:processDebugResources"解决方法 Android Studio项目Build的时

  • 本文向大家介绍maven deploy时报错的解决方法,包括了maven deploy时报错的解决方法的使用技巧和注意事项,需要的朋友参考一下 今天在发布maven工程的时候,很奇怪,因为在本地package,install等等都没问题,但是打包的时候就是报错,日志如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-d

  • E立方管理平台表单填报时超链接不能使用,点击这些超链接出现“由于本机的限制,该操作已被取消,请与系统管理员联系”的提示,可用以下方法解决: 一、Office 2003       解决方法:IE - 工具 - Internet选项,点“程序”,在“默认的WEB浏览器”中点“设为默认值”,就可以解决这个问题,在EXCEL中点链接不再提示“由于本机的限制,该操作已被取消,请与系统管理员联系”这个信息了

  • 本文向大家介绍innerHTML在IE中报错解决方案,包括了innerHTML在IE中报错解决方案的使用技巧和注意事项,需要的朋友参考一下 问题:开发过程中,用到循环往table里面插入tr标签,然后tr里又循环插入td,在其它浏览器都没问题,但是在IE9及以下版本中都报错: google上得到答案:由于我之前不知道错误的原因,在百度找不到解决方法,后来用谷歌搜到了,外国有人也遇到过这个问题,并指

  • 本文向大家介绍gem install redis报错的解决方案,包括了gem install redis报错的解决方案的使用技巧和注意事项,需要的朋友参考一下 在使用ruby脚本安装Redis集群时,需要先安装Ruby语言环境和redis插件,但是安装redis插件时遇到以下报错,下面记录一下解决过程。 因为执行Ruby脚本需要Ruby语言环境,所以首先安装Ruby语言环境和Ruby的包管理器Ge

  • 本文向大家介绍Windows安装Node.js报错:2503、2502的解决方法,包括了Windows安装Node.js报错:2503、2502的解决方法的使用技巧和注意事项,需要的朋友参考一下 前言 Windows真的是太恶心了!!!不仅会出现大量的垃圾文件,而且有时莫名的安装不上一些软件(正常软件)。前久因为想学学Koa2,打算升级下nodejs的版本以体验下ES6、ES7的aync,awai

  • 本文向大家介绍laravel执行php artisan migrate报错的解决方法,包括了laravel执行php artisan migrate报错的解决方法的使用技巧和注意事项,需要的朋友参考一下 报错一 原因是php.ini 扩展"php_pdo_mysql.dll"没开启 报错二 数据库编码改为utf8mb4 报错三 加上两行代码即可 以上这篇laravel执行php artisan m

  • 本文向大家介绍django model去掉unique_together报错的解决方案,包括了django model去掉unique_together报错的解决方案的使用技巧和注意事项,需要的朋友参考一下 事情是这样的,我有一个存储考试的表 category 表示考试的类型, date 表示考试的日期。建表的时候考虑到一个类型的考试在同一个应该只有一个考试,所以就加了一个 unique_toge