Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Fix duplicate ssl_prefer_server_ciphers error #16

Merged
merged 1 commit into from
Jan 28, 2018

Conversation

oakey-b1
Copy link
Contributor

and duplicate ssl_protocols warning

nginx: [warn] duplicate value "TLSv1.2" in /etc/nginx/conf.d/90.hardening.conf:11
nginx: [emerg] "ssl_prefer_server_ciphers" directive is duplicate in /etc/nginx/conf.d/90.hardening.conf:14


Some distributions (like for e.g. Ubuntu 16.04) have ssl_prefer_server_ciphers in the nginx config by default.
If this is the case nginx won't (re)start after hardening as the setting is duplicate.

I had this error with the Ubuntu 16.04 cloud image.

and duplicate ssl_protocols warning

> nginx: [warn] duplicate value "TLSv1.2" in /etc/nginx/conf.d/90.hardening.conf:11
> nginx: [emerg] "ssl_prefer_server_ciphers" directive is duplicate in /etc/nginx/conf.d/90.hardening.conf:14
@spruce
Copy link

spruce commented Jan 26, 2018

@rndmh3ro You wanna look into this? As I see it there has to be a modification somehow related inside https://github.com/dev-sec/nginx-baseline to remedy this Problem.

@rndmh3ro rndmh3ro added the bug label Jan 28, 2018
@rndmh3ro rndmh3ro merged commit f3a6fbd into dev-sec:master Jan 28, 2018
@rndmh3ro
Copy link
Member

The problem with the nginx-baseline is that it still just looks into the hardening.conf file and checks for the options there.

I started rewriting the baseline with the inspec-resource nginx_conf, however I failed, see here: inspec/inspec#2485

@spruce
Copy link

spruce commented Jan 28, 2018

Thanks for taking care ❤️ .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants