开发者

HTTPS and Data Integrity

I haven't done lot of research on HTTPS yet so I have a question about it.

Is data integrity preserved using HTTPS or only confidentiality? For example on fil开发者_StackOverflowe upload, does HTTPS guarantee that no one can change the data on upload, or it only guarantees that no one can read it?


Short answer: Yes

Requirements:

  • The cipher suite uses a digest algorithm like SHA, SHA-2 (256 or 394) or MD5 (please avoid it !) to compute a Hash-based Message Authentication Code (HMAC). This message is then used to check data integrity for each record.

Example: TLS_RSA_WITH_AES_128_CBC_SHA256

  • The cipher suite supports Authenticated Encryption with Additional Data (AEAD) like AES-GCM (AES-CCM, AES-EAX exist but are less common) or CHACHA20-POLY1305 (recommended).

Example: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256

Regarding the second example, it is important to note that SHA256 is NOT the HMAC algorithm but it is used as PRF (check this answer for more details).


For the most part yes, but for maximum security, I would recommend in addition to using HTTPS, I would recommend configuring your server's SSL configuration to use a signed certificate and use the following SSL configurations:

SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT

Also, use SSL Version 3 if possible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜