Coder Social home page Coder Social logo

Comments (4)

jhoongo avatar jhoongo commented on June 14, 2024

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.

MarlosChida avatar MarlosChida commented on June 14, 2024

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.

jhoongo avatar jhoongo commented on June 14, 2024

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.

MarlosChida avatar MarlosChida commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.