rspec/rules/S5527/description.adoc

9 lines
408 B
Plaintext
Raw Normal View History

To establish a SSL/TLS connection not vulnerable to man-in-the-middle attacks, it's essential to make sure the server presents the right certificate.
2021-02-02 15:02:10 +01:00
The certificate's hostname-specific data should match the server hostname.
2021-02-02 15:02:10 +01:00
It's not recommended to re-invent the wheel by implementing custom hostname verification.
2021-02-02 15:02:10 +01:00
TLS/SSL libraries provide built-in hostname verification functions that should be used.