Deploying pre-encrypted configuration files to a production environment

后端 未结 1 384
不思量自难忘°
不思量自难忘° 2021-01-21 01:30

We want to encrypt all our web app configuration files that we deploy to a server. We\'d prefer to do this as a step in our build process and include the pre-encrypted files ins

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 01:42

    You are encrypting/decripting using the default provider on your machine (this will be different for each machine).

    You need to specify the provider:

    aspnet_regiis -pef appSettings D:\testapp -prov "SampleProvider"
    

    On your colleagues machine:

    aspnet_regiis -pdf appSettings D:\testapp
    

    0 讨论(0)
提交回复
热议问题