Skip to content

Instantly share code, notes, and snippets.

@geekbass
Created April 28, 2018 12:11
Show Gist options
  • Save geekbass/84fce3e0921fe5e350385f3e023fc326 to your computer and use it in GitHub Desktop.
Save geekbass/84fce3e0921fe5e350385f3e023fc326 to your computer and use it in GitHub Desktop.
Unpack a tar ball of certs and inject into root ca for RH Distros. Awesome Team member set this up for us.
#!/bin/bash
LOCATION=`S3|http|NFS|ETC|location_of_tar`
sudo curl -o /tmp/ca-certs.tar $LOCATION \
&& sudo cd /etc/pki/ca-trust/source/anchors \
&& sudo tar vfx /tmp/ca-certs.tar \
&& sudo /usr/bin/update-ca-trust extract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment