• Create a valid SSL certificate with proper fields (SubjectAlternativeName, Server Authentication).
• Or install your CA certificate manually on the iOS device (Settings > General > About > Certificate Trust Settings).
• Or better: use real trusted certificates (for example, from Let’s Encrypt).