Access Certificate Thumbprint web.config

We have keys in our web.configs that use thumbprint values. Rather than storing the thumbprint as plain text in a variable, are we able to set a variable as the thumbprint for a particular cert?

I found this,, but don’t know if it’s possible to do what I was asking.

Hi Corey,

Absolutely. If you have created a certificate variable named, for example, MyCertificate, then you can use the following variable-substitution in your web.config:


I hope that helps.


that’s perfect, thanks!