To enable certificate logging to a file, you must update the configuration file for the appropriate component. The following table specifies the configuration file that you must update for each component.
|
Component
|
File name
|
File location
|
Associated Microsoft Exchange service
|
|---|
|
POP3
|
Microsoft.Exchange.Pop3.exe.config
|
%programfiles%\Microsoft\Exchange Server\ ClientAccess\PopImap
|
Microsoft Exchange POP3
|
|
IMAP4
|
Microsoft.Exchange.Imap4.exe.config
|
%programfiles%\Microsoft\Exchange Server\ ClientAccess\PopImap
|
Microsoft Exchange IMAP4
|
|
SMTP
|
EdgeTransport.exe.config
|
%programfiles%\Microsoft\Exchange Server\Bin
|
Microsoft Exchange Transport Service
|
Changes that are saved to the .config files are applied after the associated Microsoft Exchange service is restarted.
To enable certificate logging, you must update the .config file by using the following XML snippet:
<system.diagnostics>
<sources>
<source name="Microsoft.Exchange.Security.Certificate" switchName="Certificate">
<listeners>
<add name="Certificates"
type="System.Diagnostics.TextWriterTraceListener"
initializeData= "d:\temp\certificate.log" traceOutputOptions="ThreadId, DateTime"/>
<remove name="Default"/>
</listeners>
</source>
</sources>
<switches>
<add name="Certificate" value="Verbose"/>
</switches>
<trace autoflush="true" >
<listeners>
<add name="Certificates"/>
</listeners>
</trace>
</system.diagnostics>
You put this XML snippet anywhere between the <configuration> and </configuration> tags in the .config file. You must copy and paste the whole XML snippet into the .config file. If you do not paste the whole XML snippet, certificate logging will not be enabled and the associated Microsoft Exchange service may log errors or otherwise fail.
To change the location of the output log, change the path listed in the initializeData element under the <listeners> tag.
By default, this XML snippet enables verbose certificate logging for the associated component. You can reduce the amount of logging by changing value="Verbose" to value="Informational" under the <switches> tag.