Skip to content

Instantly share code, notes, and snippets.

@mccun934
Forked from JacobCallahan/gencerts.sh
Created November 14, 2017 20:10
Show Gist options
  • Save mccun934/baf68231e1e7927de746ee6806e4ef9c to your computer and use it in GitHub Desktop.
Save mccun934/baf68231e1e7927de746ee6806e4ef9c to your computer and use it in GitHub Desktop.
Satellite certificate generator script
#! /bin/bash
git clone https://github.com/iNecas/ownca.git
cd ownca
yes "" | ./generate-ca.sh
yes | ./generate-crt.sh $(hostname)
certdir="$(pwd)/$(hostname)/"
cp cacert.crt $(hostname)/
cd $(hostname)
katello-certs-check -c "$(hostname).crt" -k "$(hostname).key" -r "$(hostname).crt.req" -b cacert.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment