This can be solved as others have said. It's not easy though for people not technically inclined nor have access to the appropriate SSL files. Here's how I did it.
The goal is to get the CA (Certificate Authority) SSL Certificate to be installed on to your iPhone. To do this, you need:
- A copy of the CA cert. I run my own mail server on linux, using postfix. My ssl cert was self-created and stored at /etc/pki/CA/cacert.pem. You need to download that file to your Mac, and rename it to end in .cer, as in cacert.cer.
- Download the iPhone Configuration Utility from Apple. This is normally used in corporate environments, but it's easy to do just this one thing:
http://support.apple.com/kb/dl851
After downloading the utility, make sure your iPhone is plugged in via USB to your Mac. Run the iPhone Configuration Utility.
Click on "Configuration Profiles" on the left of the tool. Scroll down to "Credentials", and add one.
Select the cacert.cer file.
Great, you've now got a config profile created, next step is to push it to your iPhone. On the left, select your iPhone, and click the "Install" button. You'll need to make sure your phone doesn't have the passcode currently locking the phone, and then you'll see a prompt on the iPhone itself to accept the configuration profile. Accept it.
Voila! Run Mail on your iPhone and you should no longer be prompted about SSL certs!
Cheers,
-pete