Questions tagged [rsaprotectedconfiguration]
10 questions
6
votes
3 answers
How to encrypt / decrypt a configuration file section with RsaProtectedConfigurationProvider
In my config file, i have some sensitive informations i wanted to encrypt for more security.
This is my code ( working as expected ):
class Program
{
static void Main(string[] args)
{
System.Configuration.ExeConfigurationFileMap…

FieryA
- 297
- 1
- 7
- 22
1
vote
0 answers
protected configurarion in dotnet core 3
I have a database in Microsoft SQL Server Management Studio and wish to include this in a project I'm working on. Of course, I could just place the connection string with all the data in the C# program itself, but I wish to do it more secure if…

wes
- 379
- 3
- 15
1
vote
0 answers
How to encrypt connection string without using ASP.net
I created a windows library to do data reading from files and some custom filter, append, remove, update data towards my database on SQL Server. And my library requires app config which needs to put in connection string, because this library…

Stone
- 111
- 2
- 14
1
vote
1 answer
Windows service can't open RSA key container
Some background:
I have a solution that consists of:
IIS Application (ASP.NET)
Windows Service
Both the IIS application and windows service are run under the same domain account. They also connect to the same database.
Database access…

kspence
- 422
- 4
- 9
0
votes
0 answers
ASP.NET RSA key container could not be opened when changing sessionState in web.config
I have encrypted the section of my web.config using a machine level RSA key container. Worked great, BUT, when I deployed my web application to the team, I quickly discovered that using...
...was not…

JimB
- 11
- 2
0
votes
1 answer
Encrypting connection strings in app.config for WinForms app
I'm using common database code between a web and WinForms app. I've researched and worked out how to encrypt the connection strings section of a web.config and app.config file. That part is ok. I have also worked out how to decrypt the connection…

mos
- 157
- 1
- 1
- 8
0
votes
1 answer
Encrypt / Decrypt in asp.net using RsaProtectedConfigurationProvider
The encryption worked properly. But now i am getting an error that says "RsaProtectedConfigurationProvider Bad Data" When checked, i came to know that we need to run the command:
aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT…

TJA
- 9
- 1
0
votes
1 answer
Unity section in .config file using Protected Configuration Provider
In my app config I'm using RSA Protected Configuration Provider, everything works fine when using it with connectionStrings section but NOT with unity section in app.config. Whenever I try to make this…

ShaneKm
- 20,823
- 43
- 167
- 296
0
votes
2 answers
ProtectedConfigurationProvider using Rsa and x509 certificate
I'm new to this so please bear with me. I'm trying to encrypt/decrypt a .config section using RsaProtectedConfigurationProvider
Please correct me if I'm wrong but from what i've been reading I need to do the following:
Get a certificate and a…

ShaneKm
- 20,823
- 43
- 167
- 296
0
votes
1 answer
ASP.NET - encrypting confing sections - ProtectSection - RSAProtectedConfigurationProvider
I am developing a web application using vs2008 and used two accounts on Vista 64 bit - the original first admin account after the Vista install and now a power user account.
I forgot what I did, but when I run SectionInformation.ProtectSection…

Steve
- 5,802
- 12
- 54
- 76