[WCF]配置文件中Certificate 的encodeValue怎么设置?
2023-09-14 08:59:39 时间
1.把cer文件(证书)导出为base64格式
a,使用mmc找到需要的证书 -- (Add Snap-In)
b,右击证书 导出
c,base64 encoded x509(.cer)
2.用notepad打开得到encodedValue值
也可以看下面的链接:
http://stackoverflow.com/questions/1199525/wcf-obtaining-certificate-encoded-value
我们在Git仓库中存储的都是明文,但在很多场景下,某些敏感的配置内容(例如数据库账号、密码),应当被加密存储以提高安全性。Config Server为配置内容的加密与解密提供了支持。