Using ASPNET_REGIIS we can encrypt the web.config using these 2 parameters:-
ASPNET_REGIIS -pef
ASPNET_REGIIS -pe
So what are the main differences between the 2 paramters?
Using ASPNET_REGIIS we can encrypt the web.config using these 2 parameters:-
ASPNET_REGIIS -pef
ASPNET_REGIIS -pe
So what are the main differences between the 2 paramters?
Copyright © 2021 Jogjafile Inc.
If you run the executable without any options, the list of all options is outputted, and
-peand-pefstate:-pefor one can take a wider variety of arguments than-pef. Additionally,-pefexpects theweb-app-physical-dirto find the Web.config to encrypt, where as-peuses virtual paths to find the file instead.I went and tested this with a dummy website and the default provider, and it seems it doesn't do anything different. The resulting encryption used was the same:
Using
-peUsing
-pef:Apart from usage differences, there doesn't appear to be any differences in terms of how it encrypts.