Update Local Development Environment Certificates

One day my local development stops working. I was setting them up one year ago for a specific project. My development environment is using certificates for client-server communication. I know for sure that the certificates were expired. The ADFS signing token certificate and self-sign SSL certificate were expired.

A small problem! But the real problem is that I cannot remember what should be done step by step. A year is long enough for an occasional task. Not anymore! This time I will document here for … the next years.

Generate self-sign certificate

Microsoft has a very detail page for it. In my case, I just need this piece of code

New-SelfSignedCertificate -DnsName "tad.local" -CertStoreLocation "cert:\LocalMachine\My"

Once generated, go to my personal certificate store

  1. Export the certificate to file.
  2. Import it into the trusted authority store.
  3. Delete the old certificate.
  4. Update SSL certificate in IIS

ADFS signing token and decryption token certificates

Open PowerShell in the ADFS server and type in these commands

Run each command in PowerShell

The rest is to update the application configs to reflect the changes.

Write a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.