您的位置:程序门 -> java -> j2se / 扩展类



tomcat配置ssl出错!! 


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


tomcat配置ssl出错!!
发表于:2007-12-06 20: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.  

不知道怎么解决???/希望指点一下...
发表于:2007-12-06 22:51:411楼 得分:0
https://localhost:8443/   tomcat的默认端口号应该是:8080啊!!    
发表于:2007-12-07 12:09:272楼 得分:0
汗   这个是https     那个默认的是http.....
发表于:2007-12-07 12:24:113楼 得分:0
该回复于2007-12-17 10:47:21被管理员删除
发表于:2007-12-08 08:13:334楼 得分:0
是一运行https://localhost:8443/       ie7就出现      
学校用的端口是8080
你的为什么会是那个8443??


快速检索

最新资讯
热门点击