ATS + Self Signed certificate

Hi,


It seems that we can't disable "App Transport Security".

So, I have created self signed certificate for my server.

I can allow the certificate in a browser when i use browser to connect server.

But ATS can't allow untrust certificate.

My problem is that I'm trying to use the API in an iOS app and connections keep failing because the device doesn't trust the certificate.

How can I use the certificate I've created?

It seems that we can't disable "App Transport Security".

That’s not quite right. See this post for a more nuanced explanation of the upcoming changes.

So, I have created self signed certificate for my server.

ATS requires that the server’s certificate be trusted by the system. The only way to avoid that is to use an ATS exception to disable ATS for the domain in question. Whether that’s the right thing to do depends on the circumstances. Why are you using a self-signed certificate?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
ATS + Self Signed certificate
 
 
Q