Last active
August 15, 2018 14:28
-
-
Save JacobCallahan/f865e29c8abb8ed79f411c7fae081dd2 to your computer and use it in GitHub Desktop.
Satellite certificate generator script
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 | |
if [ -n "$1" ]; then | |
name=$1 | |
else | |
name=$(hostname) | |
fi | |
git clone https://github.com/iNecas/ownca.git | |
cd ownca | |
yes "" | ./generate-ca.sh | |
yes | ./generate-crt.sh $name | |
certdir="$(pwd)/$name/" | |
cp cacert.crt $name/ | |
cd $name | |
katello-certs-check -c "$name.crt" -k "$name.key" -r "$name.crt.req" -b cacert.crt |
I'll keep this script as-is for now, to maintain 6.3 and below compatibility. thanks for the heads up, though!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For satellite 6.4 you can use https://gist.github.com/ntkathole/d6f15b984fd5851ccf6c54c059c400fb