Automating SSL Certificate Renewal with PowerShell Script

Hello

I’m trying to automate the renewal of SSL certificates using Certify The Web and PowerShell scripts, but I’m running into issues with automatically updating the certificates and binding them to IIS. :upside_down_face: While I can manually renew and bind certificates without any problems, I would like to streamline the process for all servers in our network.

I have a script that checks for certificate expiration, but I’m struggling with the exact steps for renewing the certificate and updating the IIS bindings automatically. Are there any examples or best practices for using PowerShell scripts with Certify the Web to handle this process? :thinking: I have checked Scripting | Certify The Web Docs guide for reference but still need advice.

Additionally, is there any way to monitor the script’s progress or get notifications if an error occurs during the renewal? :thinking:

Thank you ! :slightly_smiling_face:

The easiest way to use the app for multiple IIS servers is to install it on each server and let each one take care of it’s own certificates. Alternatively you could look into the windows Centralized Certificate Store feature.

If a powershell task fails the overall renewal will fail (by default) and after repeated failures you will be notified via our API. You can also add a task which triggers if previous steps have fails.

Our web dashboard can be used to monitor overall certificate renewal status across many servers or many certificates.