Last active
June 10, 2021 13:43
-
-
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
This file contains hidden or 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 | |
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