Https iOS with self signed certificate

前端 未结 2 1720
死守一世寂寞
死守一世寂寞 2020-12-01 11:30

I have a server with a self signed certificate . I want to connect my device with the server with https form . I hear that I must just accept the connexion . But I don t kn

2条回答
  •  既然无缘
    2020-12-01 11:52

    Certificate configuration:

    You have to install the Self Signed Certificate or CA on the device in order for the device to trust it then only device trusts the SSL connection.

    In the case of installing self signed certificate make sure domain name of the URL is same as Common name of certificate.

    If there is no domain name then IP address is fine.

    Certificate installation:

    You can just host it on the web server and try to access it from safari then iOS will prompt for the certificate installation in the iOS Device

    Certificate Creation:

    Here is the way to create self signed certificate so that you can fill all the details and host in web server.

    openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 1001 -nodes
    

    (Pay attention while entering the value for Common Name)

提交回复
热议问题