lizongbo 的 編程學習

          http://618119.com

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            23 Posts :: 1 Stories :: 78 Comments :: 0 Trackbacks


          4.4.6  Tomcat HTTPS配置
          在server.xml里配置:
          tomcat普通的https配置
              <Connector port="8443"
                         maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                         enableLookups="false" disableUploadTimeout="true"
                         acceptCount="100" scheme="https" secure="true"
                         clientAuth="false" sslProtocol="TLS"
                     keystoreFile="conf/.keystore"
                     keystorePass="lizongbo">
              </Connector>


          Tomcat使用apr之后的ssl雙向認證配置如下:

             <Connector port="8443" maxHttpHeaderSize="8192" protocol="HTTP/1.1"
                        maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                        enableLookups="false" disableUploadTimeout="true"
                        acceptCount="100" scheme="https" secure="true"
                        clientAuth="true" <!--雙向驗證-->
                        SSLEngine="on" bufferSize="8192"
                        SSLEnabled="true"
                        SSLProtocol="all"
                        SSLCipherSuite="ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL"
                        SSLCertificateFile="..\conf\ca\www.crt"
                        SSLCertificateKeyFile="..\conf\ca\www.key"
                        SSLCACertificateFile="..\conf\ca\ca.crt"
                        SSLCACertificatePath="..\conf\ca"
                        SSLVerifyDepth="15"
                        SSLVerifyClient="require"
                         />

           

          4.6.6  Squid HTTPS
          squid.conf中加上:
          https_port 3443 cert=D:/ca/www.crt key=D:/ca/www.key


          4.7.6  LightTPD HTTPS
          首先使用copy命令把 key和crt合并為一個文件,
          D:\ca>copy /b www.key+www.crt www.pem

          然后配置如下:
          $SERVER["socket"] == ":443" {
          ssl.engine = "enable"
          ssl.pemfile = "D:/ca/www.pem"
          ssl.ca-file = "D:/ca/ca.crt"
          server.name = "www"
          server.document-root = "D:/httpsdosc"
          server.errorlog = "httpserror.log"
          accesslog.filename = "httpsaccess.log"
          }
          (下面的雙向驗證沒有測試是否可用)
          如需啟用雙向驗證,則還需下面的配置參數(shù):
          ssl.verify-peer = "enable"
          ssl.verify-depth  = 1
          參考:http://trac.lighttpd.net/trac/ticket/921


           

          posted on 2007-10-13 13:50 lizongbo 的編程學習 閱讀(3233) 評論(2)  編輯  收藏 所屬分類: java開源
          主站蜘蛛池模板: 凌海市| 南宫市| 德保县| 高安市| 株洲县| 类乌齐县| 津南区| 赤峰市| 哈尔滨市| 岫岩| 漾濞| 化州市| 白朗县| 长葛市| 岗巴县| 长丰县| 靖宇县| 浠水县| 武安市| 新泰市| 包头市| 淄博市| 秦皇岛市| 叙永县| 渭源县| 寿宁县| 广宁县| 文山县| 南投市| 昌平区| 阜南县| 汤阴县| 宁明县| 亚东县| 嘉黎县| 郴州市| 沙洋县| 霍山县| 黄骅市| 岫岩| 韶关市|