楼上的,你真是......
我在<Factory>标签里设这了一个
keystoreFile = "C:\Documents and Settings\Administrator\.keystore"
重启动就行了。另外请问如果我要是不设这个属性的话,
那么要把.keystore这个文件放到哪里也能达到实现https呢???

解决方案 »

  1.   

    是不是用KEY(插在USB)也可以呢?
      

  2.   

    KEY呀,里面存有个人的私匙,好像是安全站点用的。
      

  3.   

    谁能再给我解释解释这个问题,之后就结贴了!“请问如果我要是不设keystoreFile这个属性的话,
    那么要把.keystore这个文件放到哪里也能达到实现https呢???”
      

  4.   

    我是按Tomcat文档里面说的实现的:         You can also enable an SSL HTTP/1.1 Connector on port 8443 by
             following the instructions below and uncommenting the second Connector
             entry.  SSL support requires the following steps (see the SSL Config
             HOWTO in the Tomcat 4.0 documentation bundle for more detailed
             instructions):
             * Download and install JSSE 1.0.2 or later, and put the JAR files
               into "$JAVA_HOME/jre/lib/ext".
             * Execute:
                 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
                 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
               with a password value of "changeit" for both the certificate and
               the keystore itself.
      

  5.   

    请问楼上的,你没有手动设那个server.xml里,<Factory>标签的那个keystoreFile属性吗?那你生成的那个.keystore文件,默认是存在了哪里呢?