Skip to content

Instantly share code, notes, and snippets.

@Sharpie
Sharpie / initialize-puppetca.sh
Created May 18, 2019 17:21
Create a Certificate Signing Request for a PE Intermediate Certificate Authority
#!/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