0

We are encrypting connection string in config file using RSA.

Server 1: We created RSA container and RSAKeys.xml created and encrypted connection string.

While decrypting it works fine in same server.

Server 2:

We created RSA container in same name of server 1. and created RSAKeys.xml created and replaced with RSAkeys.xml from Server 1.

While we try to decrypt the connection string which has been encrypted in Server 1 is not working.

Facing below issue

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The parameter is incorrect

We can't able to maintain 2 different encrypted keys in source level. Can someone please help me to resolve this.

Thanks in advance

Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263
priya
  • 151
  • 1
  • 6

0 Answers0