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 | |
| rm *.jks 2> /dev/null | |
| rm *.pem 2> /dev/null | |
| echo "====================================================" | |
| echo "Creating fake third-party chain root -> ca" | |
| echo "====================================================" | |
| # generate private keys (for root and ca) |
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
| # The first one in that file is the actual cert of the website | |
| # The following ones in that file is the chain. Possibly this should separate full-chain.pem to chain.pem + cert.pem | |
| openssl s_client -host www.google.com -port 443 -showcerts 2>&1 | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > ~/Desktop/full-chain.pem |
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
| # curl -sSL https://gist.github.com/abajwa-hw/bca3d23fe146c3ebd59a9b5fd19480a3/raw | sudo -E sh | |
| export host=$(hostname -f) | |
| export realm=${realm:-CLOUDERA.COM} | |
| export domain=${domain:-cloudera.com} | |
| export kdcpassword=${kdcpassword:-BadPass#1} | |
| set -e | |
| sudo yum -y install krb5-server krb5-libs krb5-auth-dialog krb5-workstation |
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
| #!/usr/bin/env bash | |
| export cluster_name=$1 | |
| export host=$(hostname -f) | |
| export ambari_pass=$2 | |
| export knox_ldap_pass=$3 | |
| hostname=$(hostname -f) | |
| current_dir=$(pwd) | |
| cd /tmp | |
| #Copy config-update to /tmp | |
| cp /tmp/masterclass/ranger-atlas/HortoniaMunichSetup/config_update.py . |