Certificate Configuration:
You must install a self-signed certificate or CA on the device so that the device can trust it, only the device trusts the SSL connection.
If you install a self-signed certificate, make sure that the domain name of the URL matches the common name of the certificate.
If the domain name is missing, then the IP address is perfect.
Certificate Installation:
You can simply place it on a web server and try to access it from safari, after which iOS will offer to install a certificate on your iOS device
Certificate Creation
Here is a way to create a self-signed certificate so that you can fill out all the details and the host on the web server.
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 1001 -nodes
(Note when entering a value for the common name)
Durai Amuthan.H
source share