Client certificate is always null

孤人 提交于 2019-12-06 15:51:35
  1. Make sure you use real IIS and not express
  2. Configure IIS so that it accepts certificates
  3. Configure mapped certificates in config or active directory
  4. Try the request in the browser and see if a certificate selection dialog pops up
    • if not diagnose based on HTTP Error sub status code
    • if so run your code again

You must know, that on server-side in response certificate is depends on certificate type / certificate content. I had same issue, when I pushed self-signed certificate (generated locally in IIS): on server in request certificate was always null. But when I pushed normal (public) certificate, with chain hierarchy - I was surprised cause I received certificate!!

So I recommend to generate public certificate for the first time at free Certificate authorized centers, such as https://www.sslforfree.com/

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