Last active
December 20, 2017 13:51
-
-
Save bitmand/c6b7332214d858130c52 to your computer and use it in GitHub Desktop.
Salt Stack state for creating a uniq 2048-bit diffie hellman group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a unique 2048 Diffie Hellman group | |
# https://weakdh.org | |
/etc/ssl/dhparams.pem: | |
cmd.run: | |
- name: openssl dhparam -out /etc/ssl/dhparams.pem 2048 | |
- unless: test -f /etc/ssl/dhparams.pem |
Any special reason for doing - unless: test -f /etc/ssl/dhparams.pem
instead of - creates: /etc/ssl/dhparams.pem
, or are they completely equivalent?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting this. Was just working on this myself :)