Wednesday, 28 October 2015

How to Encrypt a connection string (ASP.NET)

1. Navigate to the path below; Ensure that you have .Net framework 4 installed. 
  • C:\Windows\Microsoft.NET\Framework\v4.0.30319
2. Run this command

aspnet_regiis.exe -pef connectionStrings "path containing config file" -prov "RsaProtectedConfigurationProvider"

For example
aspnet_regiis.exe -pef connectionStrings "C:\inetpub\wwwroot\FinPay00 " -prov "RsaProtectedConfigurationProvider"

No comments:

Post a Comment

Ugandan Telecoms: Were you ready for this Simcard Re-registration Ocassion!!!!

There was a recent directive from Uganda communications commission calling upon Ugandans to re-register their simcards this time using thei...