Skip to content

Instantly share code, notes, and snippets.

@kikoseijo
Last active February 4, 2018 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikoseijo/fc39907d87f588485195da1488d7179f to your computer and use it in GitHub Desktop.
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
#!/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