{"id":204,"date":"2018-05-08T17:03:46","date_gmt":"2018-05-08T15:03:46","guid":{"rendered":"http:\/\/zupertails.be\/wur\/?p=204"},"modified":"2018-05-08T17:03:46","modified_gmt":"2018-05-08T15:03:46","slug":"self-signed-server-certificate-has-expired-usually-in-sbs-environment","status":"publish","type":"post","link":"https:\/\/zupertails.be\/wur\/?p=204","title":{"rendered":"Self-signed server certificate has expired (usually in SBS environment)"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignright size-full wp-image-252\" src=\"http:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/exchange_shell.png\" alt=\"\" width=\"54\" height=\"41\" \/>If you&#8217;re born before 1990 (and if you&#8217;re in IT), you probably grew up with self-signed certificates.<br \/>\nThey give you a lovely fake feeling of security, but more than that, they will give users and the IT department horrible stress to configure.<br \/>\nIn &#8220;days of olde&#8221; (early 2000&#8217;s), an Exchange server was able to run over http traffic and a certificate was absolutely not required.<\/p>\n<p>Times have changed and so have security protocols. It&#8217;s ill-advised to use a self-signed certificate nowadays, as it is equally ill-advised to use a .local domain anymore on your domain controller.<\/p>\n<p>That being said, there&#8217;s a couple of ways to fix an expired self-signed certificate on a Windows SBS server. (read first, perform later, you&#8217;ll see why)<\/p>\n<h2>Lazy mode<\/h2>\n<p><em>aka &#8216;fix my network&#8217;<\/em><\/p>\n<p>Open the SBS console, go to the &#8216;network&#8217; menu and select the &#8216;Connectivity&#8217; tab.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-249\" src=\"http:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork.jpg\" alt=\"\" width=\"628\" height=\"231\" srcset=\"https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork.jpg 628w, https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork-300x110.jpg 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>Click &#8216;Fix my network&#8217; and deselect everything except the certificate error, after this wizard stops scanning.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-250\" src=\"http:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork_cert.jpg\" alt=\"\" width=\"623\" height=\"502\" srcset=\"https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork_cert.jpg 623w, https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork_cert-300x242.jpg 300w, https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/fixmynetwork_cert-100x80.jpg 100w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/p>\n<p>The usual Next-Next-Next will follow and according to Microsoft, you&#8217;re good to go.<\/p>\n<p>HOWEVER&#8230;<\/p>\n<p>There&#8217;s a couple of things that can go wrong here :<\/p>\n<ul>\n<li><strong>Your certificate contains a custom entry referring to a domain name or subdomain name that wasn&#8217;t originally added in the SBS wizard.<\/strong>\n<p>You&#8217;ll need to perform the manual method for renewing a certificate. See below.<\/li>\n<li><strong>Your Exchange webmail (https:\/\/your_mail_server_ip\/owa\/) still gives a certificate error, stating your certificate&#8217;s still expired.<\/strong>\n<p>In this case, <a href=\"https:\/\/ssl.comodo.com\/support\/ssl-technical-faqs\/unified-communications-certificates\/why-does-my-old-cert-show-for-owa-even-though-i-replaced-it.php\">your IIS needs to be reminded of the fact that he should use the newly created certificate<\/a>.<\/li>\n<\/ul>\n<h2>Somewhat easy mode<\/h2>\n<ol>\n<li>Start the ExMngmtnShell (Exchange Management Shell) as Administrator<\/li>\n<li>type <strong>Get-ExchangeCertificate<\/strong> to list the installed certificates<\/li>\n<li>Match the certificate to the expired certificate (using subject the name and services) from the Console then copy the associated thumbprint<\/li>\n<li>Type <strong>Get-ExchangeCertificate \u2013Thumbprint <em>INSERTTHUMBPRINTHERE<\/em> | New-ExchangeCertificate | Enble-ExchangeCertificate -services pop,imap,smtp,iis<\/strong><\/li>\n<li>Type <strong>Y<\/strong> to renew the certificate<\/li>\n<li>Restart SBS2008\/2011 Console or restart server.<\/li>\n<li>Profit.<\/li>\n<\/ol>\n<h2>Like-a-bawz-mode<\/h2>\n<p><img loading=\"lazy\" class=\"alignright size-medium wp-image-251\" src=\"http:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/00002-241x300.jpg\" alt=\"\" width=\"241\" height=\"300\" srcset=\"https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/00002-241x300.jpg 241w, https:\/\/zupertails.be\/wur\/wp-content\/uploads\/2018\/05\/00002.jpg 410w\" sizes=\"(max-width: 241px) 100vw, 241px\" \/>Beautifully explained on\u00a0<a href=\"http:\/\/www.petenetlive.com\/KB\/Article\/0000535\">http:\/\/www.petenetlive.com\/KB\/Article\/0000535<\/a>, so no need to repeat what Pete already wrote.<br \/>\nThe main idea here is to use the IIS built-in Certification Authority (certsrv), while manually defining all entries needed in the certificate.<\/p>\n<p>It&#8217;s still relatively easy, but requires a lot of steps.<\/p>\n<p>Of all three mentioned methods, this last one is most likely to succeed.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Sources :<\/p>\n<ul>\n<li>http:\/\/www.petenetlive.com\/KB\/Article\/0000535<\/li>\n<li>https:\/\/serverfault.com\/questions\/526221\/renewing-sbs2011-exchange-self-signed-certificate-w-o-changing-home-page-in-ie<\/li>\n<li>My own meandering experience<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re born before 1990 (and if you&#8217;re in IT), you probably grew up with self-signed certificates. They give you a lovely fake feeling of security, but more than that, they will give users and the IT department horrible stress to configure. In &#8220;days of olde&#8221; (early 2000&#8217;s), an Exchange<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,9,7],"tags":[],"_links":{"self":[{"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204"}],"version-history":[{"count":2,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zupertails.be\/wur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}