Create a gist now

Instantly share code, notes, and snippets.

Embed
Easy way to add valet secured sites self signed certificates to iOS simulators
#!/bin/bash
# PREREQUISITES:
# have this repo under know directory
# https://github.com/ADVTOOLS/ADVTrustStore.git
# Add valet certificates to ios simulators
echo "Im Done..;-)"
ls -la ~/.valet/Certificates
echo "Which one? (without extension name)"
read CERT_NAME
cd ~/kscripts/ADVTrustStore
rm -rf $CERT_NAME
cp ~/.valet/Certificates/$CERT_NAME.crt ./$CERT_NAME.crt
openssl x509 -in $CERT_NAME.crt -out $CERT_NAME.pem -outform PEM
./iosCertTrustManager.py -a $CERT_NAME.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment