Andrew Posted on 10:19 pm

Update SSL Certificates on SharePoint 2013 and SharePoint WebApps Server

For the first official post to AzureTracks.com, I’ve decided to share an experience I had working with SharePoint 2013 certificates and WebApps. This happened before the official work to get this client ready for Office 365 Migrations. Before I was able to fully assess a client environment, their certificates expired on SharePoint about 2 weeks before a scheduled assessment and SharePoint Online migration. I needed to get the certificates renewed quickly for the client as their WebApps server had stopped working and impacted their production environment. They had some departments working heavily in SharePoint with records, process flows, and email to library functionalities. Once I got the certificates sorted out I ran some health checks and then prepared their SharePoint environment for migration to SharePoint Online.

The steps below is what was done to download the new certificates from GoDaddy and apply them on the servers needed locally. I’ll start by going over a few assumptions for this article.

Before we begin, there are a few assumptions here:

  • You have been exposed to SharePoint administration.
  • You have been exposed to SSL Certificates and Issuers.
  • You have a basic understanding of Windows Server management tools.
  • We will use GoDaddy as our SSL provider in this example for ease.
  • We will use a Wildcard certificate in this example.
  1. Log into GoDaddy > Products > SSL Certificates > *.company.com > Manage > Download IIS Certificate Version
  2. Copy the zip file to a folder and decompress it.
    1. Create a sub-folder called ‘ExportedKey’
    2. You will copy the top-level folder to both your SharePoint and WebApps servers to complete the needed steps.
  3. On the SharePoint server:
    1. Copy that certificates folder to your desktop to work with, make sure you delete it off the server later.  You would not want to leave your certificates sitting there.
    2. Open IIS Manager
    3. Go to Server Certificates
    4. Create a certificate request > Fill in logically with your company Details correctly.  Pay attention to the following details:
      1. Microsoft RSA SChannel
      2. 2048 bit
      3. Filename “xxxx_csr.txt” save in root folder of certificate work locally.
        1. Make this a nice plain name for your certificate signing request so you can easily reference it in 6 months if needed.
    5. Still in Server Certificates on IIS Manager
      1. Right-click and Complete Certificate Request
      2. Enter the file name (select by browsing)
      3. Enter a Friendly name as “2017-18 Wildcard” so that you can see it easily in the list of certificates later.
      4. Personal
    6. In MMC for Certificates:
      1. Export key “all certs”, Private Key
      2. Password as “something secure here”.
      3. Copy the exported key file (pfk) to a 2nd location such as your own PC.  Make sure you encrypt that folder using something awesome like BitLocker.  You do not want bad-guys to get their hands on your certificates.  I tend to track every password I enter for anything in various KeePass databases that are purpose oriented.
    7. In IIS Manager:
      1. Sites > Change binding on port 443 to new cert
      2. Check all sites as needed
      3. iisreset
      4. Load sites in IE and Firefox to validate certificate date functionality is all there for your SharePoint sites.
        • Be very thorough in your testing.  Spending time testing your sites now will prevent service tickets and customer impact later.
  4. On SharePoint Apps server:
    1. Copy that certificates folder from your main SharePoint server to your desktop to work with, make sure you delete it off the server later.  You would not want to leave your certificates sitting there.  You have a private key certificate in there now.  Do not leave that sitting around.
    2. In MMC for Certificates, do the following to add that private key certificate:
      1. Import
      2. All normal default options > use  “something secure here” password that you set when creating the key.
      3. Check box “Mark as Exportable” to provide a secondary server for key exports, or do not to keep better security practices.
      4. Extended = Checked Yes
      5. Finish
    3. Check in IIS Manager > Certificates that the new Cert is showing correctly for the new year.
    4. In IIS Manager:
      1. Sites > Change binding on port 443 to new cert
      2. Check all sites as needed
      3. iisreset
      4. Load sites in IE and Firefox to validate cert date & functionality = ok.
      5. Load sites in IE and Firefox to validate certificate date functionality is all there for your SharePoint sites.
        • Be very thorough in your testing.  Spending time testing your sites now will prevent service tickets and customer impact later.
        • If not, validate the cert is correct again, iisreset, then reboot server.

Ensure that once you have your certificates updated that you really test your SharePoint sites.  Load a few different sections, test any special functionality that you’re using such as email to library, notifications, and especially the embedded web apps.

Make sure that you use whatever your favourite medium is to create some documentation for your company.  After all, if you create the documentation this year from a set of steps that you know work; maybe next year will go smooth as silk!

Hopefully this has helped you get your certificates renewed and get you set for success in the future. Remember that for on-prem SharePoint, you need to renew the certificates regularly.

PRO TIP: Set your Service Desk ticketing system to create a ticket on a schedule a couple of weeks ahead of certificates expiring to keep your company on track for the next time. It’s not always about you! The next person helping your company needs to be setup for success just as much!