How to change the Friendly Name on a certificate -Windows

  • Google Plus
  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

I ran into the situation where someone created and applied a certificate in IIS and the friendlyName was wrong. During automatic deployments of the software, they would call into the cert store and select the certificate to use for their 443 bindings based on the friendly name. The certificate was named wrong and wouldn’t get applied during deployment or it would apply the wrong one.

Here is how to fix this using PowerShell without re-issuing the certificate.

Open up PowerShell with administrative rights and change your location to the certificate store.

We will change the certificate with the thumbprint named wrong_internal_wildcard to right_internal_wildcard

In the above example, I have done the following:

    Opened Powershell
    Set-Location to the certificate store by typing Set-Location cert:
    Listed out the certs by typing Get-ChildItem
    Located the cert I wanted to change the friendly name of
    Put that cert in a variable so I could view it’s properties
    Verified that the cert is the right one by typing $cert.friendlyname
    Then changed the friendlyname by typing $cert.FriendlyName = “right_internal_wildcard”
    lastly, I verifed the cert friendlyname by typing $cert.FriendlyName

    • Google Plus
    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS

Leave a Reply

Your email address will not be published. Required fields are marked *