在wcf配置文件中经常会出现这样的属性:
<identity>
<certificate encodedvalue="large string!!!!!!!" />
</identity>
那么这其中的encodedvalue如何设置?
1.把cer文件(证书)导出为base64格式
a,使用mmc找到需要的证书 -- (add snap-in)
b,右击证书 导出
c,base64 encoded x509(.cer)
2.用notepad打开得到encodedvalue值
也可以看下面的链接:
<a href="http://stackoverflow.com/questions/1199525/wcf-obtaining-certificate-encoded-value">http://stackoverflow.com/questions/1199525/wcf-obtaining-certificate-encoded-value</a>