将Tomcat下的http项目迁移到https
来源:互联网 发布:海辉高科软件科技公司 编辑:程序博客网 时间:2024/05/22 12:42
操作概述:
一共2步,需要配置tomcat和application.
1.配置tomcat,使其支持ssl
1.1 导出keystore文件:
keytool -v -genkey -alias tomcat -keyalg RSA -keystore /software/tomcat/tomcat.keystore
跟着提示操作就好, 密码可以用相同的
1.2 配置$TOMCAT_HOME/server.xml
启用SSL,并且设置keystorePass和keystoreFile的值
<!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation --><Connector SSLEnabled="true" clientAuth="false" maxThreads="150"port="8443" protocol="HTTP/1.1" scheme="https" secure="true"sslProtocol="TLS" keystorePass="tigEr@53" keystoreFile="/software/tomcat/tomcat.keystore" />
2.修改web.xml文件使其重定向
在<welcome-file-list/>后边加上一段, done.
<login-config><!-- Authorization setting for SSL --><auth-method>CLIENT-CERT</auth-method><realm-name>Client Cert Users-only Area</realm-name></login-config><security-constraint><!-- Authorization setting for SSL --><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>
- 将Tomcat下的http项目迁移到https
- 将项目从tomcat 迁移到JBoss
- 将Orcas下的wpf项目迁移到VS2005
- Tomcat 下项目迁移到weblogic 10
- Tomcat 下项目迁移到weblogic 10
- http切换到https的tomcat配置
- 如何将你的activiti项目发布到tomcat下
- 如何将项目发布到tomcat的ROOT目录下
- Eclipse将项目发布到Tomcat的根目录下
- 将项目部署到tomcat的webapps目录下
- 如何将项目发布到Tomcat的webapps目录下
- https配置从tomcat迁移到Nginx
- Nginx下的项目 http转https
- tomcat 项目迁移到weblogic
- Tomcat的设置HTTP页面自动跳转到HTTPS
- root账号下的应用迁移到tomcat用户下
- Eclipse中的Web项目自动部署到Tomcat(myeclise默认就将web项目部署到tomcat的webapps下)
- Eclipse中的Web项目自动部署到Tomcat(myeclise默认就将web项目部署到tomcat的webapps下)
- 解决document.form.submit()对象不支持此属性或方法
- C实现DNS
- 影响Java EE性能的十大问题
- 用 Python实现C的读入方式
- iphone静态库的创建和调用
- 将Tomcat下的http项目迁移到https
- 解决VS2008 开发Windows Mobile 项目生成速度慢的问题
- 模板的作用?
- 【欢哥列传】
- Android实例说明
- 位移进制运算
- oralce修改已有的表为分区表
- 使用Flash骨骼工具制作角色动画
- Django 模板中使用css, javascript