Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an internally-hosted Exchange 2010 Server with an internal domain, EXCHANGE0.COMPANY.COM.

I have configured all users to access Outlook (even internally) using Outlook-over-HTTP. To do so I have set up a client access certificate for the externally-facing domain

The problem is that whenever users open Outlook they are promptly greeted by certificate warnings of the mismatch between and EXCHANGE0.COMPANY.COM. I would like to eliminate these warnings and I feel there is a way to do so either through DNS or through Exchange. I am just not sure what to do.

AutoDiscover is configured using the SRV method if that matters at all.

EDIT: Configuration on clients looks as follows

Exchange Server: EXCHANGE0.COMPANY.COM Connect using Outlook Anywhere (HTTP): on fast and slow connections, connect to and only trust

Name on certificate is, but Outlook was expecting EXCHANGE0.COMPANY.COM

share|improve this question
Can you clarify what the configuration looks like? Are the outlook clients configured to point to or And what name is on the certificate? – Shane Madden Dec 16 '11 at 16:35
This info has been added in the edit – tacos_tacos_tacos Dec 16 '11 at 16:37
Is it issued from an internal certificate authority where you could easily issue a new certificate with a subject alternate name? If not, then you may need to look at using a different IP address with an SSL listener with its own certificate - one IP for each name. – Shane Madden Dec 16 '11 at 16:56
The certificate is issued externally. I would like to avoid purchasing an additional SSL certificate... But maybe I need to issue one from within the domain? – tacos_tacos_tacos Dec 16 '11 at 17:01
That would work if all of the clients connecting to the exchange0 name would trust that certificate. – Shane Madden Dec 16 '11 at 17:03
up vote 4 down vote accepted

You can take care of this problem by setting the InternalURL attributes for the various Exchange components to match your external name ( Once you've done that you can create a DNS record (probably a CNAME for "" to ""-- it sounds like you named your AD domain the same as your real Internet domain name) so that clients can connect to "" and get directed to the Exchange Server computer.

The "set" commands for each component you'll need to run are below. You can use the "Get-" versions of these commands to see how they're set now.

Set-ActiveSyncVirtualDirectory -InternalURL
Set-AutodiscoverVirtualDirectory -InternalURL
Set-ClientAccessServer -AutodiscoverServiceInternalUri
Set-ECPVirtualDirectory -InternalURL
Set-OABVirtualDirectory -InternalURL
Set-OWAVirtualDirectory -InternalURL
Set-WebservicesVirtualDirectory -InternalURL
share|improve this answer

To remedy this issue, you will need to a new certificate! Why is that? Because you'll need the certificate subject to match both, and preferably also.

A workaround would be to use a wildcard certificate for all services (*

share|improve this answer

If i understand correctly you want to reconfigure your exchange services to work under one domain (even internally) using this KB940726 or this link (both covering the same thing). The error is consistent for Exchange 2007/2010 server. Otherwise you will need a SAN certificate (or a wildcard certificate) to cover more then one domain under same certificate (which is costy).

Also if you're low on money or supporting small company I would recommend that you use as your main domain for everything (even for your outlook clients to connect to, owa etc). It may seem inconvenient but this will save you costs on certificates that require to cover more then one domain (SAN certificates). I found this to be the most cost-effective solution for my small time customers who don't nessecary wanna pay 100-1000$ yearly just to get certificate that can handle multiple domains under one ip/port.

And to finish this up you can get free (real free!) SSL certificates from StartSSL renewed yearly without any charge. Only revocation is not free but as long as you generate certs correctly and don't loose keys you should be safe.

share|improve this answer
Are StartSSL free certificates trusted by all major browsers? – gravyface Dec 29 '11 at 0:40
Yes. I use it for 4 of my clients and never had a problem with them (except old nokia phones). Try for yourself.. if you can enter their site without warning it should be fairly safe ;-) – MadBoy Dec 29 '11 at 0:41
Just did. FireFox complains about it. Chrome appears to be ok, but then says unverified issuer under the certificate details. – gravyface Dec 29 '11 at 1:48
I use it in FireFox 11 and IE and it's fine. – MadBoy Dec 29 '11 at 9:17

I had this problem the other day at a client where I (at the time) couldn't figure out how to get NAT reflection working, so that users accessing in Outlook 2010 (which apparently adds Outlook over HTTP by default) were getting redirected to the internal interface on the firewall (which had a self-signed somefirewall.local certificate).

I solved the problem by setting up split DNS: I created a Zone for in Active Directory DNS (and added all the appropriate records and sub-domains such as A, CNAMEs, MX, TXT, etc.) and made sure that resolved to the Exchange Server's internal IP address. Worked without issue, but it's a pain to have to remember to keep both Zones (real and internal) up-to-date if there's no trust/automated method of doing so.


This should work for you if you create a zone for and create an A record for (parent) to resolve to your internal Exchange server because if the certificate is installed on Exchange, it should be valid/trusted.

share|improve this answer
Create your split zone as "" not "". In the "" zone add a blank "A" record referring to the IP address of the Exchange Server computer. Then you don't have to keep the rest of the "" records in sync. Pain relieved. – Evan Anderson Dec 29 '11 at 1:26
Ahhh, Good call – gravyface Dec 29 '11 at 1:50

I fixed mine with these 4 commands (change server names/web URLs as needed)

Set-ClientAccessServer -Identity EXCHANGE-SERVER -AutoDiscoverServiceInternalUri

Enable-OutlookAnywhere -Server EXCHANGE-SERVER -ExternalHostname "" -DefaultAuthenticationMethod "Basic" -SSLOffloading:$False

Set-OABVirtualDirectory -identity "EXCHANGE-SERVER\OAB (Default Web Site)" -externalurl -RequireSSL:$true -InternalUrl

Set-WebServicesVirtualDirectory -identity "EXCHANGE-SERVER\EWS (Default Web Site)" -externalurl -BasicAuthentication:$True -InternalUrl

I restared IIS after for good measure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.