Can not verify the identity of ...

181
2
12-01-2019 07:31 AM
lin2Zhang
New Contributor

Client Platform: IOS runtime SDK 100.6 in iPad

Argis Server: 10.3

- When I using base map (https://domainName/.../MapServer/0 ) to an argis server with SSL enabled, a pop up appear with title: "Can not verify the identity of 'XXX'" and the message is: "The server's certificate is invalid. You might be connecting to a server that is pretending to be 'XXX', which could put your confidential information at risk. Would you like to connect any way?", then I choose 'Continue' but the map didn't load anymore.

- I tried to implement the AGSAuthenticationManager delegate and adding trustHostAndContinue but the map not working anymore.

-Some other information: Safri in the iPad can browse ( https://domainName/.../MapServer/0 ).  and my application can connect to mapserver service published without SSL enabled.

Please help me, thank you.

0 Kudos
2 Replies
Nicholas-Furness
Esri Regular Contributor

Thanks for this info. I assume this is a duplicate of this question: https://community.esri.com/thread/244598-map-didnt-load-when-choose-trusthostandcontinue-on-ios 

Can you share the code you used to implement the AGSAuthenticationManager delegate?

0 Kudos
NimeshJarecha
Esri Regular Contributor

Hello Lin,

Looks like you are using the self-signed certificate on the server. Apple has updated their requirement for the certificates on the server. Please go through below link and make sure your certificate matches the requirement.

Requirements for trusted certificates in iOS 13 and macOS 10.15 - Apple Support  

Just to try, can you add the `App Transport Security Settings` in your info.plist file with either setting the `NSAllowsArbitraryLoads = YES` or setting exception of your server with `NSExceptionAllowsInsecureHTTPLoads = YES`? Does it work?

Please refer details of setting the `App Transport Security Settings` in below link.

Preventing Insecure Network Connections | Apple Developer Documentation 

Hope this helps!

Regards,

Nimesh

0 Kudos