Skip to content

Instantly share code, notes, and snippets.

@mccun934
Last active May 31, 2022 19:41
Show Gist options
  • Save mccun934/5eff0831f80bda1790d146430a19a59d to your computer and use it in GitHub Desktop.
Save mccun934/5eff0831f80bda1790d146430a19a59d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Works with Satellite 6.5 and later
# https://access.redhat.com/solutions/2273561
rm -f /etc/candlepin/certs/keystore
rm -f /etc/candlepin/certs/truststore
rm -f /etc/tomcat/truststore
rm -f /etc/candlepin/certs/amqp/*
rm -rf /etc/pki/katello/nssdb/*
rm -f /etc/pki/katello/truststore
mv /root/ssl-build/ /root/orig-ssl-build-`date "+%Y%m%d-%H%M"`
mkdir /root/ssl-build
satellite-installer --certs-reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment