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
#!/bin/bash | |
# Initialize a Puppet Intermediate Certificate Authority (CA) by generating | |
# a RSA key and Certificate Signing Request using the OpenSSL CLI. | |
# Fail if any subcommand fails. | |
set -e | |
# Ensure files created by this script are only accessible to the user | |
# that ran the script. | |
umask 0077 |