Site icon Dotnet Helpers

How to use appcmd.exe to renew a new certificate for Bulk HTTPS URLs (Bindings)

While using multiple IIS server in a Load Balanced Environment, it will be a lot of work and challenge of changing/updating the certificate for large numbers of URLs bindings. In that type of scenario we can achieve simply by single line of command by using the appcmd.

Syntax

appcmd renew Binding /oldCert:oldcerthash /newCert:newcerthash

Execution STEPS

  1. Open old Certificate which need to replace with New installed certificate 
  2. Open Details Tab >> Go to Thumbprint >>Copy entire value and paste in notepad (see below image). Ensure removing the space in the Thumbprint
  3. Open New Certificate make a note of New Thumbprint and copy
  4. Open command prompt in administrator mode and Go to C:\windows\system32\inetsrv.
  5. Run below command

Ex : appcmd renew Binding /oldCert:‎f2a0d6168c1813158a850a098819704c369bb5da                        /newCert:‎B17v0d6168c1813158a850a098819704c369bb3dr

      

Exit mobile version