locked
request.clientcertificate("SUBJECT") RRS feed

  • Question

  • User1097540539 posted

    How can I get the SUBJECT of the client certificate to log using advanced logging?

    Thanks,

    Kevin

    Friday, October 21, 2011 12:38 AM

All replies

  • User1558068163 posted

    Hi,

    You need add a custom logging field to the global logging fields list, you can follow the steps below:

    1.In IIS Manager, open the Advanced Logging feature at the server, Web site, virtual directory, or application level.
    2.In the Actions pane, click Edit Logging Fields to open the Edit Logging Fields dialog box.
    3.In the Edit Logging Fields dialog box, click the Add Field button.
    4.In the Add Logging Field dialog box, specify settings and values for the custom logging field

     Field ID. Type a friendly name (for example, client cert subject) .
     Source type. Select Server Variable.
     Source Name. Enter CERT_SUBJECT as the Server Variable that you want to log.

    5.Add the above logging field to a log Definition

    For more information, please refer to:

    Advanced Logging for IIS 7.0 - Custom Logging
    http://learn.iis.net/page.aspx/579/advanced-logging-for-iis-70---custom-logging#custom

     

    Thanks

    Tuesday, October 25, 2011 5:09 AM
  • User1097540539 posted
    Thank you.
    Tuesday, October 25, 2011 8:15 AM