Environment
Microsoft Windows: All Supported Versions
Objective
Enabling CAPI2 Windows Logging
Resolution
Enable CAPI2 Logging:
- Open the computer management console by entering in the Start->Run box: compmgmt.msc /s
- From the console object tree (left side) expand Event Viewer -> Windows Logs -> Applications and Services Logs -> Microsoft -> Windows -> CAPI2 select Operational.
- Select an event of interest and on the bottom half find the 'General' and 'Details' tab.
- Select the 'Details' tab and select the 'XML view' radio button to view the XML document (see CAPI2 Details example below)
- Look for either the 'ErrorStatus' or the Certificate Error Code: CERT_TRUST_STATUS (wincrypt.h) - Win32 apps
Save and Disable CAPI2 Logging:Save and disable the CAPI2 logs:
- In Event Viewer, right click "Operational"
- Select "Save All Events As"
- Fill in name, save as type: Event Files (.evtx)
- Select "Display information for these languages"
- Select "English"
- Click "Ok"
- Right click "Operational" and choose "disable log"