Current location - Quotes Website - Signature design - What should I pay attention to when creating and using a self-signed SSL certificate in iOS?
What should I pay attention to when creating and using a self-signed SSL certificate in iOS?
You can quickly create a self-signed SSL certificate without paying any fees, purchasing certificate authorization and complying with any audit requirements.

However, for self-signed certificates, browsers do not automatically trust websites that use them. Therefore, when using the HttpWatch application on the mobile Safari browser, you will often see warnings similar to the following:

The browser warns when using a self-signed certificate

Use the HttpWatch iOS application to prompt for more warning information:

The browser warns when using a self-signed certificate

So, how can I set up iOS to avoid receiving such a warning? What should I pay attention to when using a self-signed certificate? Let's look at two points first:

First, don't accept self-signed certificates in Safari.

When you first try to use a self-signed certificate in Safari, you may naturally choose to continue or details->; Accept.

Self-signed certificates in Mobile Safari are not accepted.

Although this can also open the site in Safari, it is worth noting that:

1. Select Continue or Details in Safari->; After accepting this certificate, Accept only added an SSL connection exception to prevent Safari from warning you about related sites. However, it will not install the certificate as a trusted certificate on iOS. Other applications on the device (such as Chrome, HttpWatch, etc.). ) still can't connect to the website.

2. Once the SSL exception is added, it is difficult to remove it in the iOS7 system. In previous versions, by setting->; Safari and select "Clear cookies and data" to delete it. But it doesn't seem easy to implement in iOS7.

Second, install the self-signed certificate as the configuration parameter file of iOS.

You can add the SSL certificate to the trusted list of iOS simply by sending this file to yourself as an attachment:

Install a self-signed certificate as a configuration parameter file for iOS.

Then select Install to add the certificate. In this way, when you use this certificate in Safari, you won't receive any relevant warnings, and other iOS apps won't receive similar warnings when they are used in this device.

Unlike the Safari SSL exception handling above, you can install it by setting->; General->; The profile can access the certificate at any time and delete the certificate if necessary:

Delete certificate

Apple provides iPhone configuration utilities for Macs and PCs to install certificates. This is a good method when email is unavailable or there are a lot of iOS devices to manage.