-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS support and other fixes/changes #9
base: master
Are you sure you want to change the base?
Conversation
[Change] added EL6/7 support [Change] removed requirement on exclusive directory structure for dhparam
add el6/7 support and fix typo
…bian and rngd on RedHat [New] added entropy service section to README.md explaining entropy services pro/con
added support for installing entropy service
…before dhparams generates
task reordering
… reduces run time significantly at no material loss of security ref: https://security.stackexchange.com/questions/54359/what-is-the-difference-between-diffie-hellman-generator-2-and-5 ref2: https://security.stackexchange.com/questions/95178/diffie-hellman-parameters-still-calculating-after-24-hours
[Change] add '-dsaparam' to openssl generation of DH parameters file;…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, @nexcess!
Everything looks great, but I'll await the response from security nuts like @foo2342 with their opinion on adding the -dsaparam
flag to the openssl dhparam
command.
Do you think using handlers to restart the entropy services could work here as well? I'm flagging my review as "Request changes" looking forward to hear back from you.
@@ -1,9 +1,14 @@ | |||
--- | |||
|
|||
dhparam_size: 4096 | |||
dhparam_file: "/etc/ssl/dhparam-{{ dhparams_size }}.pem" | |||
dhparam_file: "/etc/ssl/dhparam-{{ dhparam_size }}.pem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
|
||
- name: The Diffie-Hellman parameter file is generated | ||
command: "{{dhparam_openssl_binary}} dhparam -out '{{ dhparam_file }}' {{ dhparam_size }}" | ||
command: "{{dhparam_openssl_binary}} dhparam -dsaparam -out '{{ dhparam_file }}' {{ dhparam_size }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @foo2342, what's your opinion on adding the -dsaparam
option.
when: (ansible_distribution == 'Debian') or (ansible_distribution == 'Ubuntu') | ||
|
||
- name: Start the haveged service | ||
service: name=haveged enabled=yes state=restarted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nexcess could we use a handler to ensure haveged is restarted after configuration changes?
@@ -5,3 +5,6 @@ | |||
|
|||
- include: install.debian.yml | |||
when: (ansible_distribution == 'Debian') or (ansible_distribution == 'Ubuntu') | |||
|
|||
- include: install.centos.yml | |||
when: (ansible_distribution == 'CentOS') or (ansible_distribution == 'Red Hat Enterprise Linux') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😻
[Fix] dhparam_file default value contains typo in dhparam_size
[Change] added EL6/7 support
[Change] removed requirement on exclusive directory structure for dhparam
[New] added dhparam_entropy_service for installation of haveged on Debian and rngd on RedHat
[New] added entropy service section to README.md explaining entropy services pro/con
[Change] reorder tasks so that entropy service installs if enabled before dhparams generates
[Change] add '-dsaparam' to OpenSSL generation of DH parameters file; reduces run time significantly at no material loss of security
ref: https://security.stackexchange.com/questions/54359/what-is-the-difference-between-diffie-hellman-generator-2-and-5
ref2: https://security.stackexchange.com/questions/95178/diffie-hellman-parameters-still-calculating-after-24-hours