Comments (4)
Hi Marlos,
By default, if you are using iOS SDK, the SDK will validate the domain name of the certificate with the host that it is trying to reach.
You can refer to the actual implementation where it is creating the server trust with the domain name if validateDomainName is set to true (which is by default).
https://github.com/CAAPIM/iOS-MAS-Foundation/blob/Stable/MASFoundation/Classes/_private_/services/network/internal/MASSecurityPolicy.m#L64
Please let me know if you have any further question or concern.
Thanks,
from ios-mas-foundation.
Hi,
I think you misunderstood my question. My question is if the HTTP Client libraries used by the SDK are SNI compliant.
When a request is made to a SNI-enabled server that hosts multiple HTTPS domains, the client must inform, during TLS handshake, the server name so the server can present the right SSL certificate corresponding to the domain accessed.
Client validation occurs after this part of the handshake.
I kindly ask you to read again the SNI description and the information my customer seeks in my original post.
Thanks again,
Marlos Chida
from ios-mas-foundation.
Hi Marlos,
Please find the below answer from Apple's official.
https://forums.developer.apple.com/message/318662#318662
iOS MASFoundation's underlying network protocol is using NSURLSession, which according to Apple's official confirmed that NSURLSession, by default, will always use the host from the request URL for the SNI.
Please let me know if you have any further question or concern.
Thanks,
from ios-mas-foundation.
Hi,
That was exactly the answer I was looking for.
Thank you very much for your attention.
Marlos Chida
from ios-mas-foundation.
Related Issues (20)
- Cocoapod for 1.6.10 HOT 1
- Login issues with the SDK HOT 1
- Carthage support HOT 1
- Question: Set global requests connect and read timouts HOT 1
- How to send JSON Array in request body? HOT 1
- Make error codes publicly available
- setGatewayNetworkActivityLogging won't emit logs when running on devices.
- MASUser.login - iOS 13 b1 error HOT 1
- Unable to export archive HOT 2
- Unable to login using MASUser from MASFoundation. HOT 4
- Bitcode error in jenkins build due to MasFoundation HOT 1
- Conflict on function appendUTF8String on NSMutableData extension
- Renwal Client Certificate
- Renewal Client Certificate Issue
- Swift Package Manager support
- ASWebAuthenticationSession support
- Error - TLS version below 1.2
- MASRequestBuilder only accept dictionary as body
- Does not compile on M1 hardware to simulator
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 ios-mas-foundation.