Usually it requires to send an email or create mobile provision file to put a server certificate file (.cer) file into ios device for trusting https connection. But if you have a web server available, it is easier to install the server certificate from the web server.
To do so, just rename the .cer file to p12 file or convert the .cer file to .der file, and put it it a web server folder. Then access the file from web url from the device mobile safari, it will automatically prompt you to install the server certificate into device profile
The same way can also be used to install server cert to ios simulator. As with XCode 6, for ios 7/7.1 simulator, it is no longer supported to just drag and drop the certificate to simulator screen. The drag and drop still works on ios 8 simulator.
To do so, just rename the .cer file to p12 file or convert the .cer file to .der file, and put it it a web server folder. Then access the file from web url from the device mobile safari, it will automatically prompt you to install the server certificate into device profile
The same way can also be used to install server cert to ios simulator. As with XCode 6, for ios 7/7.1 simulator, it is no longer supported to just drag and drop the certificate to simulator screen. The drag and drop still works on ios 8 simulator.
No comments:
Post a Comment