[skill][https][ssl/tls] HTTPS相關知識匯總

來源:互聯網
上載者:User

標籤:服務   hand   轉寄   串列   item   ide   簡單   計算   rest   

結論前置:

  A 身分識別驗證

    認證, 伺服器憑證

  B 密鑰協商

    RSA   DHE / ECDHE   PSK

  C 加密通訊

加密通訊採用對稱式加密,使用B階段協商出來的密鑰。

B 階段如果使用 RSA 協商,可以用伺服器憑證在協商過程中解密到 C過程中的密鑰。從而解密通訊內容。(此方式下,採用旁路方式就可以)。

B 階段如果使用DHE/ECDHE協商,至少需要建立連結時的server魔數(也許還需要私密金鑰即伺服器憑證)才能計算出加密金鑰。簡單來說協商過程也是一次一密。

於是,應該有兩種情況可以解密https。

情況一:與server 通訊,即時獲得兩個資訊:1,session 資訊。2,server魔數。 這種情況下,只需要旁路就可以了。

情況二:串列在網路中,做中間人。需要伺服器憑證做認證與簽名,流程我暫時還沒搞清楚。然後,需要與兩端握手並協商密鑰,然後做兩端加解密,並內容轉寄。

 

引用一段有用的內容[1] 

A WAF applies filter rules on traffic at an "application" level (e.g. it tries to detect SQL injection attempts). This requires that the WAF sees the traffic, i.e. whatever SSL which may have happened on the client side must stop at the WAF. But you usually want some SSL to protect the traffic between the client and the WAF (in fact, you usually want it more on that link than between the WAF and the server itself, since WAF and server are usually nearby to each other).There are two ways for a WAF to see SSL-protected traffic:The WAF has a copy of the private key used by the (SSL-aware) server, and thus can decrypt the data as it flows. (This can imply some restrictions on the cipher suites used by the server; namely, no DHE).The WAF itself runs a SSL server, and that is the one which the client sees. The WAF decrypt the data, runs its magic on it, and then forwards it to the server over a new connection which may or may not be SSL-protected.Which one you use depends on what your WAF instance can do and how you configured it.

 

 

概念:

http://www.guokr.com/post/114121/

http://www.guokr.com/post/116169/

http://www.guokr.com/post/148613/

 

https://en.wikipedia.org/wiki/HTTPS

 

雙向認證,單項認證:

http://www.jianshu.com/p/0a7b028e2465

http://edison0663.iteye.com/blog/996526

 

瀏覽器安全控制項:

最主要的功能就是防止用戶端作業系統木馬程式截取使用者關鍵資訊的輸入(銀行卡帳號/密碼)。

http://wiki.mbalib.com/wiki/%E5%AE%89%E5%85%A8%E6%8E%A7%E4%BB%B6

 

完全正向保密  PFS(perfect forward secrecy)

  http://baike.baidu.com/item/%E5%AE%8C%E5%85%A8%E6%AD%A3%E5%90%91%E4%BF%9D%E5%AF%86

  https://en.wikipedia.org/wiki/Forward_secrecy

  https://www.sslchina.com/deploying-forward-secrecy/

  https://zh.wikipedia.org/wiki/%E5%89%8D%E5%90%91%E5%AE%89%E5%85%A8%E6%80%A7

 

PFS 密鑰協商:

  https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange

  https://zh.wikipedia.org/wiki/%E8%BF%AA%E8%8F%B2-%E8%B5%AB%E7%88%BE%E6%9B%BC%E5%AF%86%E9%91%B0%E4%BA%A4%E6%8F%9B

  ** https://program-think.blogspot.com/2016/09/https-ssl-tls-3.html

 

TLS:

  https://en.wikipedia.org/wiki/Transport_Layer_Security

  https://en.wikipedia.org/wiki/Transport_Layer_Security#TLS_handshake

其他:

  1190000004985253 

  http://www.admin5.com/special/https/

  **** [1] https://security.stackexchange.com/questions/44563/is-ssl-required-for-sites-hosted-behind-waf

免費認證:

  https://letsencrypt.org/

 

RFC:

  https://tools.ietf.org/html/rfc5246 

 

題外內容:TOR

https://en.wikipedia.org/wiki/Tor_(anonymity_network)

 

TODO:

 STARTTLS

 

[skill][https][ssl/tls] HTTPS相關知識匯總

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.