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
Leave A Comment