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
- Open old Certificate which need to replace with New installed certificate
- Open Details Tab >> Go to Thumbprint >>Copy entire value and paste in notepad (see below image). Ensure removing the space in the Thumbprint
- Open New Certificate make a note of New Thumbprint and copy
- Open command prompt in administrator mode and Go to C:\windows\system32\inetsrv.
- Run below command
Ex : appcmd renew Binding /oldCert:f2a0d6168c1813158a850a098819704c369bb5da /newCert:B17v0d6168c1813158a850a098819704c369bb3dr