[学习] 配置tomcat以便能使用HTTPS进行连接.
2010-06-24 10:47
381 查看
由于工作需要, 查了下怎么配置Tomcat 5 才能访问使用https访问系统.
转自: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
To install and configure SSL support on Tomcat 5, you need to follow
these simple steps. For more information, read the rest of this HOW-TO.
Create a certificate keystore by executing the following command:
Windows:
Unix:
and specify a password value of "changeit".
Uncomment the "SSL HTTP/1.1 Connector" entry in
and tweak as necessary.
从这看出, 相当简单的配置, 可惜我一直不知道.
首先执行:
"%JAVA_HOME%/bin/keytool" -genkey -alias tomcat -keyalg RSA
然后依次输入一些必要信息.
执行命令成功后, 直接取消
最后,通过https和8443端口, 直接就可以访问了.
转自: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
To install and configure SSL support on Tomcat 5, you need to follow
these simple steps. For more information, read the rest of this HOW-TO.
Create a certificate keystore by executing the following command:
Windows:
%JAVA_HOME%/bin/keytool -genkey -alias tomcat -keyalg RSA | ||
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA | ||
Uncomment the "SSL HTTP/1.1 Connector" entry in
$CATALINA_HOME/conf/server.xml
and tweak as necessary.
从这看出, 相当简单的配置, 可惜我一直不知道.
首先执行:
"%JAVA_HOME%/bin/keytool" -genkey -alias tomcat -keyalg RSA
然后依次输入一些必要信息.
执行命令成功后, 直接取消
$CATALINA_HOME/conf/server.xml这个文件里面的关于SSL配置的注释即可.
最后,通过https和8443端口, 直接就可以访问了.
相关文章推荐
- 数据库连接学习(二)——Tomcat下使用C3P0配置JNDI数据源
- Tomcat配置JMX并使用JvisualVm进行连接
- [学习总结]8、android 自定义控件 使用declare-styleable进行配置属性(源码角度)
- tomcat7配置https,并强制使用https
- 配置Tomcat使用https协议(配置SSL协议)
- 使用HttpClient发送HTTPS请求以及配置Tomcat支持SSL
- 配置Tomcat使用https协议
- 学习内容32 关于tomcat https 配置
- 配置Tomcat使用https协议
- 在Tomcat中配置使用https的过程
- 配置Tomcat使用HTTPS协议
- JNDI学习总结(二)——Tomcat下使用C3P0配置JNDI数据源
- 【hadoop】Hadoop学习笔记(九):如何在windows上使用eclipse远程连接hadoop进行程序开发
- Tomcat配置-学习笔记5---https加密连接器
- 通过USB连接到Android真机,在终端中配置adb工具,并使用adb工具对安卓手机进行调试
- CentOS7 增加tomcat 启动,停止,使用systemctl进行配置
- 服务器配置nginx和tomcat都使用https协议
- 配置Tomcat使用https协议(配置SSL协议)
- tomcat7.0.55配置单向和双向HTTPS连接
- 在两台Linux机器之间配置一条SLIP链路,以便使用互联网socket进行通信