encrypting web.config failed error

后端 未结 9 1126
囚心锁ツ
囚心锁ツ 2021-02-18 13:18

I know that ppl have already asked questions regarding encrypting web.config.

im also trying to encrypt my test config file, but im getting this error.

aspnet_re

9条回答
  •  长发绾君心
    2021-02-18 13:45

    The Sections are CASE SENSITIVE.

    Do not Add \ at the end of the path (no web.config needed).

    You don't need to do it straight on a site; instead, copy the file to any location.

    Encrypting:

    aspnet_regiis -pef "SECTIONTOENTRYPT" "d:\tempEnCrypt" -prov WhateverProviderYouAreUsing 
    

    Decrypting:

    aspnet_regiis -pdf "SECTIONTOENTRYPT" "d:\tempEncrypt"
    

    You can use this to encrypt an app.config as well, just rename the file for the encryption/decryption as web.config

提交回复
热议问题