WCF, self signed Certificates for Encryption

邮差的信 提交于 2019-12-22 09:49:25

问题


I want to create WCF services using aspnet membership to authorize the user. However, if I just need the certificate for encryption purposes only, does it matter if it is a self signed certificate or do you need to buy a certificate from a vendor?


回答1:


You could use self-signed certificates, but the problem there is that you have to install the certificate on each and every machine that will use the certificate for encryption.

If you have a large number of machines that the clients will run on, this can easily become prohibitive from a maintenance and configuration point of view and it would easily justify the purchase of a certificate from an authority.




回答2:


A self-signed certificate regardless of whether you authenticate the user carries the same risks. Best practice is to use a real cert in a production environment. With some very cheap prices these days, it's not much of a financial burden to take on any more either (unless you're a stickler for Verisign).

It's been discussed and noted that self-signed certs in a production WCF environment also come with heavy performance issues:

  • Terrible Performance with WCF and certificates (mutual authentication)
  • http://weblogs.asp.net/cibrax/archive/2006/08/08/Creating-X509-Certificates-for-WSE-or-WCF.aspx
  • http://www.google.com/search?q=wcf+self+signed+performance


来源:https://stackoverflow.com/questions/2298976/wcf-self-signed-certificates-for-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!