{"id":104,"date":"2014-05-02T19:33:32","date_gmt":"2014-05-02T19:33:32","guid":{"rendered":"http:\/\/www.torontohelpdesk.ca\/blog\/?p=104"},"modified":"2014-05-02T19:38:41","modified_gmt":"2014-05-02T19:38:41","slug":"the-name-on-the-security-certificate-is-invalid-or-does-not-match-the-name-of-the-site","status":"publish","type":"post","link":"https:\/\/www.torontohelpdesk.ca\/blog\/the-name-on-the-security-certificate-is-invalid-or-does-not-match-the-name-of-the-site\/","title":{"rendered":"The name on the Security Certificate is invalid or does not match the name of the site"},"content":{"rendered":"<p><strong>Problem:<\/strong><\/p>\n<p>You get the following message in Outlook:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"The name of the security certificate is invalid or does not match the name of the site\" src=\"http:\/\/www.petenetlive.com\/KB\/Media\/0000036\/00001.png\" width=\"391\" height=\"278\" \/><\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>When you installed the SSL, certain parameters weren&#8217;t setup properly.<\/p>\n<p>For this solution we will use mail.mitconsulting.ca as the external CName or A record that points to your Exchange environment. Please substitute your address for <span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>. Replace <span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span> with your server name.<\/p>\n<ol>\n<li>Load Exchange Management Shell<\/li>\n<li>Run Get-ClientAccessServer | fl\n<ol>\n<li>The results should show you (under AutoDiscoverServiceInternalUri) something along the lines of https:\/\/site\/Autodiscover\/Autodiscover.xml<\/li>\n<li>This is wrong, site should be replaced with mail.mitconsulting.ca<\/li>\n<li>Replace the items in red with your info<\/li>\n<li>Run the following command: Set-ClientAccessServer -Identity <span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span> -AutodiscoverServiceInternalUri https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/autodiscover\/autodiscover.xml<\/li>\n<\/ol>\n<\/li>\n<li>Run Get-WebServicesVirtualDirectory | fl\n<ol>\n<li>The results should show you (under InternalUrl and ExternalURL) something along the lines of https:\/\/site\/EWS\/Exchange.asmx<\/li>\n<li>This is wrong, site should be replaced with mail.mitconsulting.ca<\/li>\n<li>Replace the items in red with your info<\/li>\n<li>Run the following command: Set-WebServicesVirtualDirectory -Identity &#8220;<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\EWS (Default Web Site)&#8221; &#8211;<span style=\"text-decoration: underline;\">InternalUrl<\/span> https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/ews\/exchange.asmx<\/li>\n<li>Run the following command: Set-WebServicesVirtualDirectory -Identity &#8220;<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\EWS (Default Web Site)&#8221; &#8211;<span style=\"text-decoration: underline;\">ExternalUrl<\/span> https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/ews\/exchange.asmx<\/li>\n<li>If you get an error message, odds are your Default Web Site name is wrong<\/li>\n<li>When you run Step 3, the second line (under Name), gives you the correct info.\n<ol>\n<li>In my case it says, EWS (SBS Web Applications)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>Run Get-OABVirtualDirectory | fl\n<ol>\n<li>The results should show you (under InternalUrl and ExternalURL) something along the lines of https:\/\/site\/OAB<\/li>\n<li>This is wrong, site should be replaced with mail.mitconsulting.ca<\/li>\n<li>Replace the items in red with your info<\/li>\n<li>Run the following command: Set-OABVirtualDirectory -Identity \u201c<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\OAB (Default Web Site)\u201d &#8211;<span style=\"text-decoration: underline;\">InternalURL<\/span> https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/OAB<\/li>\n<li>Run the following command: Set-OABVirtualDirectory -Identity \u201c<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\OAB (Default Web Site)\u201d &#8211;<span style=\"text-decoration: underline;\">ExternalURL<\/span> https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/OAB<\/li>\n<li>If you get an error message, odds are your Default Web Site name is wrong<\/li>\n<li>When you run Step 4, the second line (under Name), gives you the correct info.\n<ol>\n<li>In my case it says, OAB (SBS Web Applications)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>Exchange 2010 and SBS 2011\n<ol>\n<li>Run Get-ActiveSyncVirtualDirectory | fl<\/li>\n<li>The results should show you (under InternalUrl and ExternalURL) something along the lines of https:\/\/site\/Microsoft-Server-ActiveSync<\/li>\n<li>This is wrong, site should be replaced with mail.mitconsulting.ca<\/li>\n<li>Replace the items in red with your info<\/li>\n<li>Run the following command: Set-ActiveSyncVirtualDirectory -Identity \u201c<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\Microsoft-Server-ActiveSync (Default Web Site)\u201d -InternalURL https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/Microsoft-Server-Activesync<\/li>\n<li>Run the following command: Set-ActiveSyncVirtualDirectory -Identity \u201c<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\Microsoft-Server-ActiveSync (Default Web Site)\u201d -ExternalURL https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/Microsoft-Server-Activesync<\/li>\n<li>If you get an error message, odds are your Default Web Site name is wrong<\/li>\n<li>When you run Step 4, the second line (under Name), gives you the correct info.\n<ol>\n<li>In my case it says, Microsoft-Server-ActiveSync (SBS Web Applications)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>Exchange 2007\n<ol>\n<li>Run Get-UMVirtualDirectory | fl<\/li>\n<li>The results should show you (under InternalUrl and ExternalURL) something along the lines of https:\/\/site\/UnifiedMessaging\/Service.asmx<\/li>\n<li>This is wrong, site should be replaced with mail.mitconsulting.ca<\/li>\n<li>Replace the items in red with your info<\/li>\n<li>Run the following command: Set-UMVirtualDirectory -Identity &#8220;<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\unifiedmessaging (Default Web Site)&#8221; -InternalUrl https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/unifiedmessaging\/service.asmx<\/li>\n<li>Run the following command: Set-UMVirtualDirectory -Identity &#8220;<span style=\"color: #ff0000;\">EXCHANGE-MAIL<\/span>\\unifiedmessaging (Default Web Site)&#8221; -ExternalUrl https:\/\/<span style=\"color: #ff0000;\">mail.mitconsulting.ca<\/span>\/unifiedmessaging\/service.asmx<\/li>\n<li>If you get an error message, odds are your Default Web Site name is wrong<\/li>\n<li>When you run Step 4, the second line (under Name), gives you the correct info.\n<ol>\n<li>In my case it says, UnifiedMessaging (SBS Web Applications)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>Then open the <a href=\"http:\/\/www.petenetlive.com\/KB\/Article\/TechTerms.html#IIS\">IIS<\/a> Manager Expand Application Pools &gt; MSExchangeAutodiscoverAppPool &gt; Right Click &gt; Recycle.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Problem: You get the following message in Outlook: Solution: When you installed the SSL, certain parameters weren&#8217;t setup properly. For this solution we will use mail.mitconsulting.ca as the external CName or A record that points to your Exchange environment. Please <a class=\"more-link\" href=\"https:\/\/www.torontohelpdesk.ca\/blog\/the-name-on-the-security-certificate-is-invalid-or-does-not-match-the-name-of-the-site\/\">Continue reading <span class=\"screen-reader-text\">  The name on the Security Certificate is invalid or does not match the name of the site<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,18,24,3],"tags":[],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-exchange","category-sbs-2008","category-sbs-2011","category-server"],"_links":{"self":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":6,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}