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

Untrusted email server certificate problem

I've recently setup a macOS Server to do email and calendar etc and everything is working fine though I am continually getting this error notification.


Untrusted email server certificate problem

The Calendar service has email invitations enabled, but the configured email server's certificate is untrusted.

I'm using self-signed certs but is there not a way to get the calendar service to trust a self signed cert to prevent this error message?

Thanks,

D

Posted on Apr 19, 2017 3:14 PM

Reply
6 replies
Sort By: 

Apr 20, 2017 2:37 AM in response to ddeacon

With self-signed certificates there are two ways to get client devices to trust them. Either you manually and normally only once trust that individual server certificate, or you do the same but instead trust the self-signed rootCA used to create that server certificate.


Since most organisations use more than one certificate it is usually much easier to distribute a copy of the self-signed rootCA certificate to all the devices and trust that on each device and then any subsequent server certificates should automatically be trusted as you would have already trusted the rootCA that created it.


You can open Keychain Assistant on your client Macs and trust this individual mail server certificate which should normally be stored in the System keychain. Similarly if you have distributed a copy of the self-signed rootCA you can find it in the same place and trust it as well. (Once the self-signed rootCA is installed and trusted the server certificate should automatically be trusted.)


There are various ways to distribute certificates including a self-signed rootCA and to automate trusting it. One of the easiest is if you are using Apple Profile Manager. You would use Profile Manager to create a 'Trust Profile' and install that on each client device. This Trust Profile can be either installed manually just by double-clicking on it, or automatically via a shell-script or by incorporating it inside an Apple Package installer, or via various Mac management tools including DeployStudio.

Reply

Apr 20, 2017 3:53 AM in response to John Lockwood

Thanks for responding John but that's not the issue I'm running into really. I'm able to manually trust the certs for users sending emails.


In this case, on the macOS Server the Calendar service uses the email service to send invitations. The calendar service is generation the error that the email service is untrusted.


Thanks

D

Reply

Apr 20, 2017 4:43 AM in response to ddeacon

The exact error message may help explain things further but the server itself needs to trust its own certificate(s). So ideally the server itself would have a copy of the self-signed rootCA and have that marked as trusted.


Potentially a different issue can arise if a server is running multiple services with multiple host names e.g. mail.domain.com, calendar.domain.com and www.domain.com either multiple certificates need to be used with the correct one assigned to the relevant hostname and service or a certificate may need 'Subject Alternative Name' aka SAN fields included in the certificate so it is able to be used for multiple hostnames.

Reply

Apr 20, 2017 9:57 AM in response to ddeacon

Last time I hit this, I was able to access the site and trust the certificate with Safari (and get it trusted and loaded into the keychain), but — as John Lockwood correctly comments — all of this is getting tougher, and setting up a local CA root and a certificate chain, or getting a commercial certificate from — for instance — LetsEncrypt is usually a better approach. LetsEncrypt certificates are free, though those do have to be renewed quarterly. (I'm hoping that some future version of macOS Server includes support for the ACME protocol used to acquire certificates from LetsEncrypt and other certificate providers, but that's fodder for another discussion.)

Reply

Apr 20, 2017 6:00 PM in response to John Lockwood

I already had the server certificate trusted in the keychain of my admin account though I did notice in my calendar server configuration, I was using a server alias that that was different than in the certificate. I changed the config for now to match the name in the certificate. The error usually comes up once a week or so, so I guess I'll wait for now to see if that was it.


Thanks,

D

Reply

Apr 21, 2017 12:51 PM in response to ddeacon

If forward and reverse DNS don't match, then mail can fail spam checks performed on remote mail servers, and — if reverse DNS doesn't match the certificate — then the associated certificate checks will (should) fail. Hosts with multiple names generally need SAN certificates.

Reply

Untrusted email server certificate problem

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