Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save routelastresort/29318a62f209a9e28f5c1ad435ad6a22 to your computer and use it in GitHub Desktop.
Save routelastresort/29318a62f209a9e28f5c1ad435ad6a22 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