How Can I Prevent Needing to Re-sign My Code Every 1 or 2 Years? How Can I Prevent Needing to Re-sign My Code Every 1 or 2 Years? powershell powershell

How Can I Prevent Needing to Re-sign My Code Every 1 or 2 Years?


You're better off selecting one of the trusted certificate providers (Verisign, Thawte, Comodo, etc.). This allows you to sign your software without the user explicitly trusting your private root CA. We've used both Verisign and Thawte, Comodo even GoDaddy with timestamping without any issues with the software becoming invalid even years after the certificate expires.


Time stamping is a free service -- it's really only a trusted provider verifying that you signed the file at a given time. Verisign's timestamp service is the standard one. The final example in the help for Set-AuthenticodeSignature demonstrates how to use it.

Lee Holmes [MSFT]Windows PowerShell DevelopmentMicrosoft Corporation


You can't really escape having to resign code eventually. The advantage to running your own CA is that you could choose to issue your code-signing certs with longer lifetimes than the default, thereby allowing you to wait longer before having to resign anything. The downside is of course having another service or server (your CA) to deal with.