Created
October 30, 2019 07:21
-
-
Save rhopp/24b5d2cbde53839a41eac33d13dcd67c to your computer and use it in GitHub Desktop.
This file contains 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 | |
## This script expects oc to be logged in into proper cluster, where you want the root cert to be imported from | |
oc get secret router-ca -n openshift-ingress-operator -o jsonpath="{.data.tls\.crt}" | base64 -d > ca.crt | |
certutil -d sql:$HOME/.pki/nssdb -A -t CT,C,C -n $(openssl x509 -in ca.crt -text |grep Issuer| grep -o 'ingress-operator@.*') -i ca.crt | |
rm ca.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment