{"id":486,"date":"2010-05-03T15:32:24","date_gmt":"2010-05-03T20:32:24","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=486"},"modified":"2011-05-04T16:53:01","modified_gmt":"2011-05-04T21:53:01","slug":"exchange-2007-3rd-party-certificate","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/05\/exchange-2007-3rd-party-certificate\/","title":{"rendered":"Exchange 2007 3rd Party Certificate"},"content":{"rendered":"<p>I&#8217;ve done plenty of new self-signed certificates for Exchange.  Most places don&#8217;t mind if the certificate displays an error when users visit the webmail site (OWA), but they do mind if the users receive an error saying the certificate name is invalid when using Outlook.<\/p>\n<p>Had the self-signed certificate installed on a standard Exchange 2007 server.  CRM 4 requires an SSL\/TLS connection.  While we could have created another internal certificate with the export = $true key, the customer also wanted to rid themselves from the invalid certificate when browsing to the Outlook Web Access site.<\/p>\n<p>Obviously replace &#8220;domain.tld&#8221; with your actual information.<\/p>\n<p>Create the certificate request:<\/p>\n<blockquote><p>Open PowerShell on Exchange<br \/>\n<code>New-ExchangeCertificate -DomainName webmail.domain.tld,other.domain.tld,autodiscover.domain.tld -FriendlyName \"Site Webmail Certificate\" -GenerateRequest:$True -Keysize 2048 -path c:\\Webmailcertificate.txt -privatekeyExportable:$true -subjectName \"c=US, o=CompanyName Inc., OU=IT, L=City, S=State, CN=webmail.domain.tld\"<\/code><\/p><\/blockquote>\n<p>Purchase the site certificate:<\/p>\n<blockquote><p>Go to your favorite SSL supplier (Verisign, Thawte, etc.) and purchase an SSL Certificate.  Standard is fine for this mostly internal-only site.<br \/>\nPaste the code from c:\\Webmailcertificate.txt when applicable<br \/>\nAfter the certificate has been authorized, download the .crt certificate and the intermediary Certificate Authority files<\/p><\/blockquote>\n<p>Install your certificate:<\/p>\n<blockquote><p>Back on PowerShell for Exchange<br \/>\n<code>Import-ExchangeCertificate -path c:\\webmailcertificate.txt<\/code><br \/>\n<code>Get-ExchangeCertificate<\/code><br \/>\nCopy the Thumbprint from the NEW certificate (probably the one with &#8220;&#8230;..&#8221; listed under Services<br \/>\n<code>Enable-ExchangeCertificate -Services IMAP, POP, UM, IIS, SMTP -Thumbprint 896B74B2YourExchangeThumbprintFC6A7<\/code><br \/>\nClick Y for Yes if prompted to replace from an old(er) certificate<\/p><\/blockquote>\n<p>Now your webmail access (OWA) should no longer have a certificate issue.  However, if the issued name on the certificate is DIFFERENT from your NETBIOS name of your email server, you will have issues INTERNALLY.  Namely, all of your outlook clients will report a certificate is invalid error &#8211; that the names do not match.  This is because the Exchange Server now has the certificate that points to webmail.domain.tld and your outlook clients are pointing to exchange07.domain.local.<\/p>\n<p>To fix this issue:<\/p>\n<blockquote><p>Once again, use PowerShell for Exchange<br \/>\n<code>Get-ClientAccessServer<\/code><br \/>\n<code>Copy the servername<\/code><br \/>\n<code>Set-ClientAccessServer -Identity SERVERNAMEHERE -AutodiscoverServiceInternalUri https:\/\/webmail.domain.tld\/autodiscover\/autodiscover.xml<\/code><br \/>\n<code>Set-WebServicesVirtualDirectory -Identity \"SERVERNAMEHERE\\EWS (Default Web Site)\" -InternalUrl https:\/\/webmail.domain.tld\/ews\/exchange.asmx<\/code><br \/>\n<code>Set-OABVirtualDirectory -Identity \"SERVERNAMEHERE\\oab (Default Web Site)\" -InternalUrl https:\/\/webmail.domain.tld\/oab<\/code><br \/>\nThere is one final step required &#8211; recycle the MSExchangeAutodiscoverAppPool:<br \/>\nOn Exchange 2007, Open IIS Manager<br \/>\nNavigate to Local Computer > Application Pools<br \/>\nRight-Click on MSExchangeAutodiscoverAppPool and select Recycle\n<\/p><\/blockquote>\n<p>That should be it.  Everything works here after recycling.<\/p>\n<p>Or you could always just put in the required domains on your certificate request:<br \/>\nNetBIOS name<br \/>\nFQDN external (if different)<br \/>\nautodiscover.domain.tld<br \/>\nautodiscover.domain.local (if applicable)<br \/>\nwebmail.domain.tld (obviously change accordingly)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve done plenty of new self-signed certificates for Exchange. Most places don&#8217;t mind if the certificate displays an error when users visit the webmail site (OWA), but they do mind if the users receive an error saying the certificate name is invalid when using Outlook. Had the self-signed certificate installed on a standard Exchange 2007 &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/05\/exchange-2007-3rd-party-certificate\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Exchange 2007 3rd Party Certificate<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/486\/revisions\/715"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}