Comments (3)
You can install the cert into your iOS simulator. Alternatively, you can use HTTP and whitelist in Info.plist during development.
from just.
Sorry, could you be a bit more specific? Are you trying to work around App Transport Security?
from just.
Yes, It's related to ATS.
Here is the full error message I've got when I tried to connect to a server that uses invalid/self-signed https.
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
More details:
Optional(Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “SERVER-IP-ADDRESS” which could put your confidential information at risk." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x610000106150>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, NSErrorPeerCertificateChainKey=(
"<cert(0x7fd4fa831400) s: snsfsrv i: snsfsrv>"
), NSUnderlyingError=0x618000053e30 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x610000106150>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=(
"<cert(0x7fd4fa831400) s: snsfsrv i: snsfsrv>"
)}}, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “SERVER-IP-ADDRESS” which could put your confidential information at risk., NSErrorFailingURLKey=https://SERVER-IP-ADDRESS/URL, NSErrorFailingURLStringKey=https://SERVER-IP-ADDRESS/URL, NSErrorClientCertificateStateKey=0})
from just.
Related Issues (20)
- Authentication is not happening in swift 4 HOT 1
- Playground Execution Failed
- POST is returning nil response in Swift 4
- How to use Just in multipart?
- Just is giving code -1001 HOT 1
- Multiple Image
- Can Just Support proxying HTTP requests? HOT 1
- Just.get params always return string Optional HOT 1
- Just.framework missing CFBundleVersion when uploading HOT 7
- Not available like pod
- Multiple endpoints
- How can I send a single string parameter?
- Not building in Xcode to run on device
- Does Just follow redirect links?
- Just.get() crash when `makeTask` HOT 2
- It seems like `asyncCompletionHandler` is executed before download task is done HOT 1
- [Suggestion] Completion handler should be call on Main Thread
- Utilizing r.json response? HOT 2
- Just Library is not supported for Xcode 12 and above HOT 1
- How to Download file HOT 2
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 just.