Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rfxn
Copy link

@rfxn rfxn commented Sep 11, 2018

[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

rfxn and others added 8 commits May 2, 2017 15:01
[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
[Change] add '-dsaparam' to openssl generation of DH parameters file;…
Copy link
Owner

@gronke gronke left a 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"
Copy link
Owner

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 }}"
Copy link
Owner

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
Copy link
Owner

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')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

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

Successfully merging this pull request may close these issues.

2 participants