I have been using WIF for the last couple of years on a few of my projects and the STSTestCert gets a bit of a workout on my development machines. This certificate is only valid for 12 months. All the applications that use this test certificate will fail to execute authentication requests once this certificate has expired.
Here is the easiest way to renew the certificate.
- Open up MMC and attach the Certificate Manager plugin for the local machine.
- Navigate to Certificates (Local Computer) -> Personal -> Certificates.
- Select and delete the expired STSTestCert certificate.
- Open VS with elevated rights
- Add a new solution
- Add a new STS project to that solution using the Tools -> Add STS Reference… menu item
- Continue through the wizard
- Refresh the MMC console and you should now have a fresh STSTestCert