Comments (4)
Oh nice, I'll try and find some time to revisit this! Sounds very promising.
from peasy.
So this is more of a challenge than I anticipated because it's difficult to get the CA cert into the simulator.
from peasy.
@KaneCheshire this is the bash script Charles proxy uses
#/bin/bash
#
# Installs the Charles Root certificate into the iOS Simulators for the current user.
SHA1=$1
SUBJ=$2
TSET=$3
DATA=$4
install() {
if [ -f "$SQLITEDBPATH" ]; then
cp -n "$SQLITEDBPATH" "$SQLITEDBPATH.charlesbackup"
sqlite3 "$SQLITEDBPATH" <<EOF
INSERT INTO "tsettings" VALUES(X'$SHA1',X'$SUBJ',X'$TSET',X'$DATA');
EOF
fi
}
for SQLITEDBPATH in ~/Library/Application\ Support/iPhone\ Simulator/3.*/Library/Keychains/TrustStore.sqlite3
do install
done
for SQLITEDBPATH in ~/Library/Application\ Support/iPhone\ Simulator/4.*/Library/Keychains/TrustStore.sqlite3
do install
done
for SQLITEDBPATH in ~/Library/Developer/CoreSimulator/Devices/*/data/Library/Keychains/TrustStore.sqlite3
do install
done
SQLITEDBPATH=~/Library/Application\ Support/iPhone\ Simulator/User/Library/Keychains/TrustStore.sqlite3
install
echo "The Charles Root Certificate has been installed for the iPhone Simulator"
from peasy.
Xcode 11.4 now supports adding certificates, so this could be a solution, right?
simctl supports a keychain subcommand. This command can add certificates to the trusted root store or the keychain. It can also reset the keychain, deleting all saved items. For example, to install βmy-selfsigned.cerβ to the trusted root store:
xcrun simctl keychain <device> add-root-cert my-selfsigned.cer
Adding a certificate to the trusted root store causes TLS/SSL connections to trust the certificate. (56213319)
from peasy.
Related Issues (18)
- Handle port in use errors better
- Improve Loop usage HOT 1
- Stopping and restarting a server on the same address crashes
- Support wildcards for matching multiple paths HOT 1
- Not found status code should be 404 not 401
- Load JSON body data from file HOT 2
- Support WebSockets HOT 3
- Support delaying responses
- Requests will fail to parse if header end indicator is split over two events
- Support other platforms in Podspec
- Reverse order of matched configurations
- Aid debugging for users by keeping a history of requests/responses/events
- Use unused ports HOT 2
- Question: building on Network.framework iOS 12+ HOT 1
- Consider allowing the user to decide what priority for the shared queue
- Split Peasy up into raw server and API
- DarwinError() - Operation not permitted - MacOS - UITests target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peasy.