今天测试了一下在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文件中的内容提交给证书颁发机构。

, , , ,

引用地址:http://www.php-oa.com/2008/04/08/squid-ssl.html

楼被抢了2层了

  1. 你好,我昨天也试了squid的ssl转发。用搜索引擎找了几个https的页面测试
    发现:
    IE7会有提示"安全证书问题可能显示试图欺骗您或截获您向服务器发送的数据"
    继续
    https://account.qq.com/
    https://cp.35.com 随便输入一个用户名和密码都会有出错提示
    https://ecard.163.com
    https://login.live.com

    好像基本都是不行 - -b


    瘦瘦的 Says @ 08-04-9 10:04
  2. ps:我以前用ccproxy,代理https倒是非常方便,没有任何问题。


    瘦瘦的 Says @ 08-04-9 10:07

要说点啥就在这吧