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, https://octopus.com/docs/deploying-applications/variables/certificate-variables, 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:

#{MyCertificate.Thumbprint}

I hope that helps.

Regards,
Michael

that’s perfect, thanks!