Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Certificates, Keychains, Always Trust, endless loop..save me!

I've seen dozens of discussions on this topic and I'm slowly making my way through this issue and hope I'm closing in on a solution.

I repeatedly get a "+Mail can't verify the identity of+" < server> warning each time I open mail. The issue seems to be that the "*always trust*" flag is not being saved. No matter how many times I open the certificate to change it, the certificate reverts back to being " not trusted" as soon as I close the app.

I reset my keychain after trying to fix this problem and screwing things up so badly that mail would no longer launch. Resetting the keychain fixed everything and now I'm back to square one. Since I'm starting with a clean slate I thought I'd do this one step at a time.
I launched mail,
opened the certificate,
drug it to the desktop,
closed mail,
opened keychain...Drag and drop and poof, there's the certificate.

open the certificate in keychain
10-> change everything to "always trust"
close the window...and wait for it to ask for the password...

Nothing happens.
open the certificate in keychain
everything is back to default "do not trust"
-> loop back to step 10

Before I reset the keychain I noticed that when I changed the certificate I would be asked for my password. The changes would take. I also noticed that the first certificate in the list would not ask for the password. Before I go any further I wanted to get some input from yous guys.

Is there a way to force a save when you have a certificate window open in keychain? +(this is more a keychain issue at this point but it directly impacts the mail issue so I'm posting here first)+

Setup:
I have my own domain. The certificate is from my hosting service. anthony.secondratehosting.com.cer

I have five email accounts all on the same server.
me1@server.com
me2@server.com
me3@server.com...etc

I get five warnings about the certificate. etc.

To keep things simple I'm only working with the first certificate that comes up in the warning message in mail. What more information can I give to help you understand what I'm doing?

*about me*: Not a novice
+I'm a long time mac user who had to switch to PC back in 1995 for my job. Now that I'm no longer there I'm back in the blissful world of Mac's but my oh my how things have changed... much for the better I see... I worked for most of my career on SGI workstations so Unix is very familiar territory. Its as if nerdvana happened while I was away! On the dark side I know the PC inside and out tho... not that that helps me here but I at least have a strong knowledge of computers and how they work (or don't), so you know I'm not a total novice needing "the mouse is the thing by the keyboard" level of help.... and if someone says "is the computer plugged in" I'll know I'm amongst some smart ***** who need a whomp on the head.+

Mac G5, Mac OS X (10.5.2)

Posted on Apr 29, 2008 3:55 PM

Reply
12 replies

May 16, 2008 11:36 PM in response to madgeorge

Still not working. I change a single option.. in this case the first one SSL (Secure Sockets Layer) to Trust. I close it and bingo... its still set to do not trust. No matter what I've done I've been unable to force Keychain to trust this certificate and from what I'm reading its been a long standing complaint going back years. For such a serious blocking bug why hasn't it been addressed before now?

I'm frustrated with it but I'll continue to try and find a way to make it work. If I find a solution I'll post it but in the mean time I'm open to suggestions.

May 17, 2008 6:29 AM in response to Papahbear

Papahbear wrote:

Before I reset the keychain I noticed that when I changed the certificate I would be asked for my password. The changes would take. I also noticed that the first certificate in the list would not ask for the password.


Which list of certificates?

Have you tried adding the root certificate for the signing authority to the "X509 Anchors" keychain?

- cfr

May 18, 2008 9:24 PM in response to Clea Rees

Well theres the rub. I may not be understanding this correctly.
I opened the certificate in mail and dragNdropped it to my desktop, then added it to the keychain. Thats what I'm trying to change to "always trust". I have tried the first drop down menu to change all of the options to "always trust" and I've tried changing one or two individually (SSL in particular). They always revert back to "no value specified".

Is there a difference between this certificate and the root certificate? it says that the root certificate isn't trusted but I don't know how to find a root certificate.

I made a certificate using certificate assistant and toyed with it. I'm having the same problem with the one I made. It says the root certificate isn't trusted but I'm confused because I just created it and set it as always trust. what am I missing?

May 19, 2008 8:37 AM in response to Papahbear

I don't altogether understand these things either but I think that the root certificates are the certificates for certificate authorities. In other words, suppose there's an organisation which issues certificates to other organisations like ISPs. You get a certificate from your ISP which is signed by the first organisation. The computer then looks to see whether it has a certificate for that organisation. If it does and it is a root certificate, the chain ends - it trusts the root, so it trusts the ISP's certificate, too. Otherwise, it looks to see who signed that certificate in turn. And so on. So all the chains of trust, if you see what I mean (I don't know all the terminology here) have to finally end with a root certificate which the computer trusts. Er... I think.

So your certificate isn't trusted because it is signed by you and you are not a recognised certificate authority with a root certificate installed. If you got the certificate signed by some organisation for which the computer had a root certificate, then it would be trusted. I think the same is true for the certificate you're trying to install. I'm not sure, though. This is sort of a mixture of a little knowledge, a good bit of guesswork and some imagination so don't take my word for it!

I don't know exactly the relevance of being in the X509Anchors vs. not being. That may not be the point. If you look through certificates in Keychain Access, though, you can see differences:
--- certificates with gold borders and gold medallion-type things which seem to be either root certificates or self-signed root certificates
--- certificates with blue borders and gold medallions which seem to be different - e.g. I have one which is an "intermediate certificate authority" which I think means that it is the certificate of a body which can issue certificates to others but it is also signed by another authority which authorises/certifies this use. Or something like that.
--- are there certificates with blue borders and blue medallions? I can't find any but I'm wondering if those would be certificates for bodies which are trusted for purposes other than signing certificates e.g. for email or something but not for issuing certificates. This is definitely into the realm of imagination now, though, as I don't seem to have any certificates like this.

I don't know if this helps but I think you need to figure out who issued the certificate you need to trust and then find the certificate for them and install it. If that's a root certificate, you'd then be done. Otherwise, you'd have to follow the chain back until you get a certificate signed by an authority the computer already trusts (because it has the a suitable root certificate) or one that is itself a root certificate which you can install.

Like I say, this is largely guesswork so don't set much store by it. I hope maybe something in it will give you a helpful clue, though. (Even if it goes via the thought that "that can't possibly be correct"!)

- cfr

Jun 1, 2008 8:03 AM in response to Papahbear

(*Note: Try and discard all logic, just perform the steps.*)

1. Open up Mail.app and wait for the certificate warning to come up.
2. Click "Show certificate" and click the arrow next to the "Trust Settings".

Instead of selecting "Always Trust", choose "Use System Settings". (It's the top option, separated from both other options.)

3. Click on the certificate in the list, then check the box "Always trust this certificate".
4. Continue.

Now quit Mail.app and if you're presented with the dialog screen again, simply repeat steps 3 & 4.

If you restart Mail.app again, the message will not re-appear.

Jun 16, 2008 9:51 AM in response to Papahbear

Checking "always trust" would only work for the particular session.
Every subsequent launch of Mail.app would send up the alerts, asking me to "always trust" again and again. This was annoying. Mail.app would not stop asking about the old/bad certs, even after they had been replaced by new ones for a couple of my SSL-IMAP accessed accounts.

The solution I found was to quit Mail, run Keychain Access (util app), locate the concerned keys, and DELETE them. Then run Mail again and "voila", it's all good and happy. no more pesky dialogs.

Jul 25, 2008 8:28 PM in response to FourSeven

Hi,

Any idea how to fix this in 10.4.11? (It works perfectly on my laptop with 10.5, but not on my G5 with 10.4.11.)

I've tried all of these steps (though they differ between 10.5 & 10.4.11) and I cannot get Mail in 10.4.11 to trust my webhost's certificate. I've tried installing the root certificate, etc. My webhost's tech support has told me that this is a bug in Apple's Mail/Keychain.

Any help would be greatly appreciated.

Thanks!

Certificates, Keychains, Always Trust, endless loop..save me!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.