tomcat配置ssl出错!!

chllcy 2007-12-06 08:26:10
A.产生证书,利用jdk自带的工具keytool(jdk宿主目录\bin)
Keytool –genkey –keyalias idtcas –keyalg RSA 回车
输入密码:haha
在输入证书信息的姓名的时候,输入CAS的公共访问地址的IP或者域名,其他的输入随便。
B.将当前用户的用户目录下的证书数据库文件(C:\Documents and Settings\Administrator\.keystore)拷贝到tomcat的根目录下,并配置tomcat使用该证书。
C.将证书导出,并且安装在JDK上
Keytool –export –file c:\idtcas.crt –keyalias idtcas 回车
输入密码:dliidt2007
系统提示成功后,将该证书导入到jdk中
Keytool –import –file c:\idtcas.crt –keyalias idtcas –keystore c:\jdk1.4.2\jre\lib\security\cacerts回车,输入密码:changeit

我照着上面的做,可是一运行https://localhost:8443/ IE7就出现
There is a problem with this website's security certificate.


The security certificate presented by this website was issued for a different website's address.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.

不知道怎么解决???/希望指点一下...
...全文
120 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
chen_liang747703 2007-12-08
  • 打赏
  • 举报
回复
是一运行https://localhost:8443/ IE7就出现
学校用的端口是8080
你的为什么会是那个8443??
chllcy 2007-12-07
  • 打赏
  • 举报
回复
汗 这个是https 那个默认的是http.....
yzk775love 2007-12-06
  • 打赏
  • 举报
回复
https://localhost:8443/ TomCat的默认端口号应该是:8080啊!!

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧