Hi @Michele Hobson ,
This may be useful
Have you tried this method?
If you are using web farm. You need to create and use an RSA key through an RSA key provider (this is the code you find useful) so that all servers can decrypt with the same key.
Encrypt and decrypt connection strings. There are two situations to consider:
1.Encryption/decryption for a Single Server
2.Encryption/decryption for a Web Farm
For specific steps, see the following documents:
https://techcommunity.microsoft.com/t5/iis-support-blog/connection-string-encryption-and-decryption/ba-p/830094
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.