Windows可以记录CryptoAPI CRL时序吗?

我怀疑 the process of building the CRL cache可能会导致某些应用程序出现延迟.

我们有几个.NET应用程序偶尔“行动缓慢”,没有cpu或磁盘访问.我怀疑他们在尝试验证证书时挂起了身份验证,因为超时几乎是20秒.

按照this MSFT article

Most applications do not specify to CryptoAPI to use a cumulative
time-out. If the cumulative time-out option is not enabled,CryptoAPI
uses the CryptoAPI default setting which is a time-out of 15 seconds
per URL. If the cumulative time-out option specified by the
application,then CryptoAPI will use a default setting of 20 seconds
as the cumulative timeout. The first URL receives a maximum timeout of
10 seconds. Each subsequent URL timeout is half of the remaining
balance in the cumulative timeout value.

由于这是一项服务,我如何检测和记录CryptoAPI挂起我有代码的应用程序,以及第三方

获取更多信息的一种方法是启用CAPI2事件日志

>打开Eventvwr – >应用程序和服务日志 – >
>微软 – > Windows – > CAPI2 – >操作 – >
>右键单击“启用日志”

事件日志中显示的信息将有助于确定证书验证过程在很长一段时间内的位置.

启用日志记录

wevtutil.exe sl Microsoft-Windows-CAPI2/Operational /e:true

将日志保存到文件

wevtutil.exe epl Microsoft-Windows-CAPI2/Operational filename.elf

禁用日志记录

wevtutil.exe sl Microsoft-Windows-CAPI2/Operational /e:false

清除日志

wevtutil.exe cl Microsoft-Windows-CAPI2/Operational

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...