void

          Squid上建立SSL代理轉發

          今天測試了一下在squid上建一個ssl代理轉發.其實也蠻容易的.

          1. https_port 443 cert=/etc/squid/SSL.CRT key=/etc/squid/SSL.KEY defaultsite=ssl.php-oa.com
          2. cache_peer ssl.php-oa.com parent 80 o no-query no-digest originserver name=www
          3. cache_peer_homain www .php-oa.com

          其實真的很容易.是吧.有個https_port和cache_peer加上那個ssl的地址基本就好了.記的https_port要加defaultsite.不加會下面錯

          The following error was encountered:

          Invalid Request

          Some aspect of the HTTP Request is invalid. Possible problems:

          Missing or unknown request method

          Missing URL

          Missing HTTP Identifier (HTTP/1.0)

          Request is too large

          Content-Length missing for POST or PUT requests

          Illegal character in hostname; underscores are not allowed

          可以使用下面命令可以生成測試用的證書:

          openssl req -new -keyout key.pem -nodes -x509 -days 365 -out cert.pem

           

          如果要生成一個證書請求用于申請正式證書請用下面兩個命令:

          1.生成私鑰 openssl genrsa -out key.pem 1024
          2.生成待簽名證書 openssl req -new -out req.csr -key key.pem

          然后將req.csr文件中的內容提交給證書頒發機構。

          posted on 2008-08-28 19:33 void 閱讀(1382) 評論(0)  編輯  收藏 所屬分類: Squid

          主站蜘蛛池模板: 十堰市| 镇巴县| 武功县| 探索| 织金县| 儋州市| 西乌珠穆沁旗| 安吉县| 沅江市| 武冈市| 县级市| 灵台县| 财经| 易门县| 远安县| 南阳市| 鄄城县| 泉州市| 平泉县| 南投县| 阿合奇县| 遂溪县| 石台县| 巴青县| 阜宁县| 泸水县| 信丰县| 油尖旺区| 建始县| 米脂县| 原阳县| 前郭尔| 松江区| 沅江市| 比如县| 富民县| 习水县| 会理县| 象州县| 德江县| 定安县|