我有一个WCF 3.0服务,该服务已在我的Web应用程序的web.config
中配置,并通过.svc
文件托管:
<endpoint address="https://domain.co.uk/services/accountservice"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAccountService"
contract="AccountServiceReference.IAccountService"
name="BasicHttpBinding_IAccountService" />
地址值不应该是web.config中的纯文本,因为我们想用我们拥有的加密算法对其进行加密,并且只在那里存储加密值。怎么可能?
我想也许我应该以编程方式在我们的IIS中托管WCF服务,以便在运行时通过从EncryptedAddress
读取AppSetting
值然后在运行时解密它来设置地址。怎么可能?
答案 0 :(得分:0)