目錄
生成keystore文件
修改tomcat中的server.xml文件
配置瀏覽器
生成keystore文件:
1.在tomcat的bin 目錄下輸入命令:keytool -genkeypair -alias tsing -keyalg RSA -keystore F:\\tsing.keystore
2.1中的keystore文件存放在F盤下,按照提示填寫信息,並記住密碼
修改tomcat的server.xml文件
<Connector port="8080" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="D:\tomcat\tomcat6\tomcat6_JLDD_https\tomcat6_JLDD\tsing.keystore" keystorePass="tsing"
配置瀏覽器:
1.配置火狐:
進去about:config 里,把下面兩個值從true改成false
security.ssl3.dhe_rsa_aes_128_sha=false
security.ssl3.dhe_rsa_aes_256_sha=false
2.配置IE
直接訪問https地址:
安裝證書.
將證書安裝至"受信任的根證書頒發機構"即可