Last active
February 4, 2018 23:26
-
-
Save kikoseijo/fc39907d87f588485195da1488d7179f to your computer and use it in GitHub Desktop.
Easy way to add valet secured sites self signed certificates to iOS simulators
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 | |
# 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