Skip to content

Instantly share code, notes, and snippets.

@wzzrd
Last active June 10, 2021 13:43
Show Gist options
  • Save wzzrd/479006084014234af04626f753ed703a to your computer and use it in GitHub Desktop.
Save wzzrd/479006084014234af04626f753ed703a to your computer and use it in GitHub Desktop.
Script to manage IdM certificates for Cockpit on RHEL7, see the video at https://www.youtube.com/watch?v=W26rWtEqToc
#!/bin/bash
name=$1
cat /etc/pki/tls/certs/${name}.cert /etc/pki/tls/private/${name}.key > /etc/cockpit/ws-certs.d/50-${name}.cert
chown root:cockpit-ws /etc/cockpit/ws-certs.d/50-${name}.cert
chmod 0640 /etc/cockpit/ws-certs.d/50-${name}.cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment