4514-nginx-openhttp2 - Recommend Enabling HTTP/2.0 (Recommend, Does Not Affect Security Options)
Rule ID
Category
Level
Compatible Versions
Description
- Session resumption for HTTPS sessions should be disabled to enable Perfect Forward Secrecy.
Scan Frequency
Rationale
- HTTP/2.0 introduces performance benefits through full multiplexing and also provides security benefits. HTTP/2.0 improves cipher suite requirements and blacklisting. It also disables session renegotiation and TLS compression. This helps prevent vulnerabilities such as CRIME and ensures stronger encryption.
Risk Items
Audit Method
- Execute the following command to verify:
grep -ir http2 /etc/nginx
# The output should contain the following:
listen 443 ssl http2;
- Edit the file
/etc/nginx/nginx.conf or files related to HTTPS configuration. Example:
server {
listen 443 ssl http2;
}
Impact
Default Value
- The highest protocol enabled by default is HTTP/1.1
References
CIS Controls