Using client certificate not in certificate store

前端 未结 4 1856
小鲜肉
小鲜肉 2021-01-30 23:45

I\'m trying to authenticate myself against WebService using my client certificate, but, for some reasons (I explain), I don\'t want to load certificate from store, rather read i

4条回答
  •  感情败类
    2021-01-31 00:30

    The potential problem could be caching of SSL sessions (Schannel cache). Only first request negotiates the SSL handshake. Subsequent requests will use the same session ID and hope that the server accept it. If the server clears the SessionId, the requests will fail with 403 error. To disable local ssl session caching (and force SSL negotiation for each request) you have to open windows registry folder:

    [HKEY_LOCAL_MACHINE][System][CurrentControlSet][Control][SecurityProviders][SCHANNEL]

    and add the key named ClientCacheTime (DWORD) with value 0.

    This issue is covered here:

    http://support.microsoft.com/?id=247658

提交回复
热议问题