Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encrypt mailSettings in Web.config

Tags:

web-config

i want to ask about to encrypt mailSettings section under system.net

enter image description here

but, when i try to encrypt by cmd.exe it seems that they cannot find mailSettings

enter image description here

i use this script

"aspnet_regiis.exe -pef "mailSettings" "D:\website" -prov ConnectionTestProvider"

can someone help me to encrypt this part?

like image 629
hkjhj Avatar asked May 14 '26 00:05

hkjhj


1 Answers

I've found the solution. you need to specify path for mailSettings for this one

"aspnet_regiis.exe -pef "system.net/mailSettings/smtp" "D:\website" -prov ConnectionTestProvider"

enter image description here

after try and find solution for days.

like image 75
hkjhj Avatar answered May 17 '26 20:05

hkjhj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!