Link to home
Start Free TrialLog in
Avatar of obautista
obautista

asked on

Encrypt Web.Config sections using aspnet_regiis

Using the Command Line method, how can we encrypt 2 sections of the web.config file using aspnet_regiis tool (i.e. AppSettings and ConnetctionStrings) with just running the command one time?  Is this possible?  What would this command look like?

Also, if I have two keys - is it possible to encrypt one and not the other?

Thanks -
ASKER CERTIFIED SOLUTION
Avatar of jorge_toriz
jorge_toriz
Flag of Mexico image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of obautista
obautista

ASKER

So we cannot encrypt two sections with just running the command once?

This does not work: aspnet_regiis -pe connectionStrings, AppSettings -app /YourApp
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial