I am getting following error with self signed certificate
Error Domain=NSURLErrorDomain Code=-1200 \"An SSL error has occurred and a secure connecti
At the command-line in OS X, run the following:
nscurl --ats-diagnostics https://filename.hostname.net --verbose
This will tell you what combinations of ATS settings will and will not permit iOS to access your site, and should point you towards what is wrong with your site.
It could be one or more of the following