Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Last active October 24, 2022 06:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save johnpmitsch/8dad04c22fd93eacbf44baea950996ad to your computer and use it in GitHub Desktop.
Save johnpmitsch/8dad04c22fd93eacbf44baea950996ad to your computer and use it in GitHub Desktop.
regenerate certs in foreman
rm -rfv /etc/foreman-proxy/*ssl*
rm -rfv /etc/foreman/old-certs
rm -rfv /etc/foreman/*.pem
rm -rfv /var/lib/puppet/ssl
rm -rfv /root/ssl-build
foreman-installer -v --certs-regenerate-ca=true --certs-regenerate=true \
--foreman-foreman-url "https://bread.usersys.redhat.com" \
--foreman-servername sat6.example.com \
--certs-ca-common-name sat6.example.com \
--certs-node-fqdn sat6.example.com \
--foreman-proxy-parent-fqdn sat6.example.com\
--foreman-proxy-register-in-foreman true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment