I get this message:
Cannot find the X.509 certificate using the following search criteria: StoreName \'My\', StoreLocation \'LocalMachine\', FindType
Remember that ASP.NET runs as a different user. It may need to be assigned access to the certificate.