<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>SmartCard Infrastructure</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/shivaram/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/shivaram/feed.xml</link>
    <description>&amp;nbsp;This blog is about Smart Card infrastructure in Windows. 
The objective of this blog is to educate everyone about Smart Card infrastructure in Windows.
A little bit about myself: I am Shivaram Mysore.  I provide consulting services in the areas of</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:03:28 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Buying Smart Cards that work with Windows XP/Vista</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/buying-smart-cards-that-work-with-windows-xpvista</link>
      <pubDate>Tue, 27 May 2008 18:57:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2008/05/27/buying-smart-cards-that-work-with-windows-xpvista/</guid>
      <description><![CDATA[Developers need to test test their code with real Smart Cards that can work with Windows.&nbsp; Here...]]></description>
      <content:encoded><![CDATA[<P>Developers need to test test their code with real Smart Cards that can work with Windows.&nbsp; Here are some manufacturers who can provide the same.&nbsp; If you are a manufacturer and not listed here, please drop me a note and I will include the same.</P>
<P><A class="" title="Raak Technologies" href="http://www.raaktechnologies.com/" mce_href="http://www.raaktechnologies.com/"><STRONG>&nbsp;Raak Technologies</STRONG></A></P>
<BLOCKQUOTE>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: Arial">They have 2 types of MiniDriver cards for general sale. (for our OEM channel a larger selection is available).&nbsp; For developers I would recommend the C2-40, which is a Javacard (IBM JCOP Card OS) that supports both RSA 1024 and 2048.&nbsp; <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: Arial">For small quantities, price can range from $14-17 per card and you can expect a 24-hour turnaround.<o:p></o:p></SPAN></P></BLOCKQUOTE>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: Arial"><A class="" title=Gemalto href="http://www.gemalto.com/" mce_href="http://www.gemalto.com"><STRONG>Gemalto</STRONG></A></SPAN></P>
<BLOCKQUOTE>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Smart Cards can be purchased online.&nbsp; From their <A class="" href="http://www.gemalto.com/" mce_href="http://www.gemalto.com/">web site</A>, select "BUY ON-LINE" at the top.&nbsp; There are two families of cards that support the minidriver architecture:<o:p></o:p></SPAN></P></BLOCKQUOTE>
<BLOCKQUOTE>
<OL>
<LI>
<DIV class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Classic TPC is our Java card-based solution<o:p></o:p></SPAN></DIV></LI>
<LI>
<DIV class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Gemalto .NET is our .NET-based solution.&nbsp; This has the minidriver built into Vista.<o:p></o:p></SPAN></DIV></LI></OL>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">&nbsp;For the “monolithic” CSP-based solution there is:<o:p></o:p></SPAN></P>
<OL>
<LI>
<DIV class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Access TPC that requires the TOP IM (what used to be called ACS) software package that includes the CSP.&nbsp; This software cannot be ordered from the webstore but through a Gemalto sales representative.<o:p></o:p></SPAN></DIV></LI>
<LI>
<DIV class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Classic TCP (as above) that (optionally) requires Classic Client software package for the CSP</SPAN></DIV></LI></OL>
<P class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'"></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">&nbsp;From the web store, you can select “Smart Cards” in the right-hand column to view and order the Classic and Access TPC cards.&nbsp; Select “.Net Solutions” to order the Gemalto .NET cards and development kit. &nbsp;Also, the Gemalto .NET cards can be managed through some utilities at</SPAN><SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"><FONT face=Calibri size=3> </FONT></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'"><A href="http://www.netsolution.gemalto.com/" target=_blank><SPAN style="COLOR: blue">www.netsolutions.gemalto.com</SPAN></A></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">.&nbsp; Select “Utilities” in the bar at the top.</SPAN></P>
<P class=MsoListParagraph style="MARGIN: auto 0in auto 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Individual .NET cards can cost around $55-$60 and the SDK can cost around $300</SPAN></P></BLOCKQUOTE>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Authentication with ASP.NET</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-authentication-with-asp-net</link>
      <pubDate>Sun, 25 Nov 2007 23:32:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/11/25/smart-card-authentication-with-asp-net/</guid>
      <description><![CDATA[Here is an interesting link that I found on implementing Smart Card Authentication with ASP.NET -...]]></description>
      <content:encoded><![CDATA[Here is an interesting link that I found on implementing Smart Card Authentication with ASP.NET - <A href="http://blogs.msdn.com/healthblog/archive/2006/11/22/the-connected-health-framework-a-service-oriented-architecture-for-health-it.aspx">http://blogs.msdn.com/healthblog/archive/2006/11/22/the-connected-health-framework-a-service-oriented-architecture-for-health-it.aspx</A>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Infrastructure Whitepaper Published</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-infrastructure-whitepaper-published</link>
      <pubDate>Thu, 16 Aug 2007 21:50:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/08/16/smart-card-infrastructure-whitepaper-published/</guid>
      <description><![CDATA[The Smart Card Infrastructure White paper has been published on the download center -...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">The Smart Card Infrastructure White paper has been published on the <A class="" title="Microsoft Download Center" href="http://www.microsoft.com/downloads/Search.aspx?displaylang=en" mce_href="http://www.microsoft.com/downloads/Search.aspx?displaylang=en">download center</A> - <A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ac201438-3317-44d3-9638-07625fe397b9&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=ac201438-3317-44d3-9638-07625fe397b9&amp;displaylang=en</A>.&nbsp; This paper has detailed information on Windows Smart Card Infrastrucure.&nbsp; Feel free to use this blog to send in your comments, suggestions and enhancements.</SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card MiniDrivers and Reader Drivers</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-minidrivers-and-reader-drivers</link>
      <pubDate>Tue, 17 Jul 2007 15:33:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/07/17/smart-card-minidrivers-and-reader-drivers/</guid>
      <description><![CDATA[Summary list of information related to Smart Card Readers and&nbsp;Card Mini-Drivers&nbsp;
Smart...]]></description>
      <content:encoded><![CDATA[<P><STRONG>Summary list of information related to Smart Card Readers and&nbsp;Card Mini-Drivers&nbsp;</STRONG></P>
<P><STRONG><U>Smart Card Mini-Driver</U></STRONG> </P>
<UL>
<LI>Specification: <A href="http://www.microsoft.com/whdc/device/input/smartcard/sc-minidriver.mspx" mce_href="http://www.microsoft.com/whdc/device/input/smartcard/sc-minidriver.mspx">http://www.microsoft.com/whdc/device/input/smartcard/sc-minidriver.mspx</A></LI>
<LI>Certification Requirements: <A href="http://blogs.msdn.com/shivaram/archive/2007/02/26/card-mini-driver-certification-requirements.aspx" mce_href="http://blogs.msdn.com/shivaram/archive/2007/02/26/card-mini-driver-certification-requirements.aspx">http://blogs.msdn.com/shivaram/archive/2007/02/26/card-mini-driver-certification-requirements.aspx</A></LI>
<LI>List of Mini-Drivers available&nbsp;on Windows Update: <A href="http://test.catalog.update.microsoft.com/v7/site/Search.aspx?q=umdf" mce_href="http://test.catalog.update.microsoft.com/v7/site/Search.aspx?q=umdf">http://test.catalog.update.microsoft.com/v7/site/Search.aspx?q=umdf</A> </LI>
<LI>CardMod.h - header file download: <A href="http://blogs.msdn.com/shivaram/archive/2007/01/02/smart-card-minidriver-aka-cardmodule-header-cardmod-h-download.aspx" mce_href="http://blogs.msdn.com/shivaram/archive/2007/01/02/smart-card-minidriver-aka-cardmodule-header-cardmod-h-download.aspx">http://blogs.msdn.com/shivaram/archive/2007/01/02/smart-card-minidriver-aka-cardmodule-header-cardmod-h-download.aspx</A></LI>
<LI>API on MSDN: <A href="http://blogs.msdn.com/shivaram/archive/2006/03/23/Card-Module-API-on-MSDN.aspx" mce_href="http://blogs.msdn.com/shivaram/archive/2006/03/23/Card-Module-API-on-MSDN.aspx">http://blogs.msdn.com/shivaram/archive/2006/03/23/Card-Module-API-on-MSDN.aspx</A></LI>
<LI>Windows Smart Card Framework Presentation (educational): <A href="http://www.incits.org/tc_home/b109htm/b109_docs07/B109_07N042.pdf">http://www.incits.org/tc_home/b109htm/b109_docs07/B109_07N042.pdf</A></LI></UL>
<P><STRONG><U>Smart Card Readers:</U></STRONG></P>
<UL>
<LI>PC/SC Standards support and Windows Logo for Smart Card Readers: <A href="http://blogs.msdn.com/shivaram/archive/2007/03/22/pc-sc-standards-support-and-windows-logo-for-smart-card-readers-and-drivers.aspx" mce_href="http://blogs.msdn.com/shivaram/archive/2007/03/22/pc-sc-standards-support-and-windows-logo-for-smart-card-readers-and-drivers.aspx">http://blogs.msdn.com/shivaram/archive/2007/03/22/pc-sc-standards-support-and-windows-logo-for-smart-card-readers-and-drivers.aspx</A>&nbsp;</LI>
<LI>List of Readers that work with Windows: <A href="http://blogs.msdn.com/shivaram/archive/2007/01/23/smart-cards-and-readers-that-work-with-windows.aspx" mce_href="http://blogs.msdn.com/shivaram/archive/2007/01/23/smart-cards-and-readers-that-work-with-windows.aspx">http://blogs.msdn.com/shivaram/archive/2007/01/23/smart-cards-and-readers-that-work-with-windows.aspx</A></LI></UL>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Credential Providers</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-credential-providers</link>
      <pubDate>Wed, 23 May 2007 16:25:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/05/23/smart-card-credential-providers/</guid>
      <description><![CDATA[Vista ships with "Password" and "Smart Card" Credential Providers.&nbsp; Some vendors are interested...]]></description>
      <content:encoded><![CDATA[<P>Vista ships with "Password" and "Smart Card" Credential Providers.&nbsp; Some vendors are interested in writing custom credential providers.&nbsp; Check out <A href="http://shellrevealed.com/" mce_href="http://shellrevealed.com/">http://shellrevealed.com/</A> for latest and up-to-date information on how to write Credential Providers.&nbsp; </P>
<P>Credential Provider Samples are available here: <A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1287ec56-77b4-48c4-8b58-35b7295d6c2c&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=1287ec56-77b4-48c4-8b58-35b7295d6c2c&amp;displaylang=en</A>.&nbsp; <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">For comments or questions about these samples, please contact <A title=blocked::mailto:credprov@microsoft.com href="mailto:credprov@microsoft.com"><FONT color=#0000ff>credprov@microsoft.com</FONT></A>.</SPAN></P>
<P>If you are writing a custom Smart Card credential provider and would like to use the features such as the ones for removal policy, feel free to use the Group Policy settings for the corresponding registry key settings.&nbsp; Note that you will have to implement the corresponding logic in your code to appropriately log-off or lock work stations which may include removing cached information, etc.</P>]]></content:encoded>
    </item>
    <item>
      <title>PC/SC Standards support and Windows Logo for Smart Card Readers and Drivers</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/pcsc-standards-support-and-windows-logo-for-smart-card-readers-and-drivers</link>
      <pubDate>Thu, 22 Mar 2007 17:19:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/03/22/pcsc-standards-support-and-windows-logo-for-smart-card-readers-and-drivers/</guid>
      <description><![CDATA[Windows (upto and including Vista) supports only PC/SC v1.0.&nbsp; As a part of Windows Vista, there...]]></description>
      <content:encoded><![CDATA[<P>Windows (upto and including Vista) supports only <A class="" title="PCSC v1.0 Specifications" href="http://www.pcscworkgroup.com/specifications/specdownloadV1.php" target=_blank mce_href="http://www.pcscworkgroup.com/specifications/specdownloadV1.php">PC/SC v1.0</A>.&nbsp; As a part of Windows Vista, there is a standard <A class="" title="Smart Card USB CCID class driver" href="http://www.microsoft.com/whdc/device/input/smartcard/USB_CCID.mspx" target=_blank mce_href="http://www.microsoft.com/whdc/device/input/smartcard/USB_CCID.mspx">USB-CCID class driver</A> in-box.&nbsp; This means that any USB Smart Card reader which is <A class="" title="Smart Card USB CCID Specifications" href="http://www.usb.org/developers/devclass_docs" target=_blank mce_href="http://www.usb.org/developers/devclass_docs">USB-CCID</A> compliant, will not need any additional drivers - they just work when plugged in.&nbsp; To get a Windows Logo for the Smart Card Reader and the corresponding driver to be on Windows Update, one has to comply with the <A class="" title="WHQL Smart Card Reader Logo Program" href="http://www.microsoft.com/whdc/whql/device/smartcard.mspx" mce_href="http://www.microsoft.com/whdc/whql/device/smartcard.mspx">WHQL logo program</A>.&nbsp; They wll also need PC/SC test cards for the same which can be obtained from <A class="" title="PC/SC Workgroup Test Cards" href="http://www.pcscworkgroup.com/specifications/newtestcards.php" mce_href="http://www.pcscworkgroup.com/specifications/newtestcards.php">PC/SC workgroup</A>.</P>]]></content:encoded>
    </item>
    <item>
      <title>Turning on S/MIME (Digital Signature/Encryption) in Outlook 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/turning-on-smime-digital-signatureencryption-in-outlook-2007</link>
      <pubDate>Mon, 26 Feb 2007 15:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/02/26/turning-on-smime-digital-signatureencryption-in-outlook-2007/</guid>
      <description><![CDATA[Digital Signature and Encryption can use Smart Card based Certificates in Outlook.&nbsp;...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Trebuchet MS">Digital Signature and Encryption can use Smart Card based Certificates in Outlook.&nbsp; </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d">In&nbsp;Office 2007, Select “Tools” </SPAN><SPAN style="COLOR: #1f497d; FONT-FAMILY: Wingdings">à</SPAN><SPAN style="COLOR: #1f497d"> “Trust Center” </SPAN><SPAN style="COLOR: #1f497d; FONT-FAMILY: Wingdings">à</SPAN><SPAN style="COLOR: #1f497d"> “Email Security”<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">See the attached image for configuration.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"><FONT face="Trebuchet MS"></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"><FONT face="Trebuchet MS">If you have had an email change from </FONT><A href="mailto:user@exchange.example.com"><FONT face="Trebuchet MS" color=#0000ff>user@exchange.example.com</FONT></A><FONT face="Trebuchet MS"> to </FONT><A href="mailto:user@example.com"><FONT face="Trebuchet MS" color=#0000ff>user@example.com</FONT></A><FONT face="Trebuchet MS"> and so the email address is different on your certificate compared to your exchange information. You will not be able to encrypt because Outlook does not allow it.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"><FONT face="Trebuchet MS"></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"><FONT face="Trebuchet MS">For Configuring Outlook 2003 on XP for the same,</FONT></P><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore"><FONT face="Trebuchet MS">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Select the 'Tools' button at the top and then select 'Options'. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Next, select the 'Security' tab. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Under 'Secure-email', select the 'Settings...' button. This will bring up the 'Change Security Settings' window. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">4.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Make sure you have a name listed under 'Security Settings Name:'. If there isn't one, please enter something that will be easy for you to remember. But, be sure that there is a name listed like: My S/MIME Settings (<A href="mailto:smysore@example.com"><FONT color=#0000ff>smysore@example.com</FONT></A>). Also, make sure that in either case, both 'Default Security Setting for this Secure Message Format' and 'Default Security Setting for all secure messages' are selected and that being for the S/MIME Secure Message Format. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">5.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Leave the 'Secure Message format' as S/MIME. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">6.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Now, under 'Certificates and Algorithms' select the 'Choose...' button located across from the 'Signing Certificate:' header. This will bring up a 'Select Certificate' window listing any available signing certificates that you have installed on your machine. Please select a certificate and then click the 'Ok' button. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">7.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Next, do the same for the 'Encryption Certificate:' section. The certificates listed in the 'Select Certificate' window of this section will be certificates that are installed on your machine and good for encrypting. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">8.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>For the 'Hash algorithm' and 'Encryption Algorithm' sections listed at the bottom of this window, you leave it as is using the defaults. The 'Encryption Algorithms' are the encryption preferences/strengths that you want to use. These are sent to the recipient of a signed mail that you send when Outlook XP is configured for encrypting. It lets them know what encryption strength you prefer. Typical algorithms used are RC2 (40bit), DES, RC2 (64bit), RC2 (128bit), and 3DES. These are listed in order of strength capabilities with 3DES being the strongest. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">9.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Make sure the 'Send these certificates with signed messages' dialogue box is checked. This just sends your encrypting certificate along with your signing certificate every time you send a signed email to somebody. This will be explained later. <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .25in"><SPAN style="mso-bidi-font-family: 'Trebuchet MS'; mso-fareast-font-family: 'Trebuchet MS'"><SPAN style="mso-list: Ignore">10.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN>Now, select 'OK' to apply your changes in the 'Change Security Settings' window. <o:p></o:p></P></FONT></SPAN></SPAN>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/01/76/52/79/enabling_smime_office2007.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-01-76-52-79/enabling_5F00_smime_5F00_office2007.jpg">enabling_smime_office2007.jpg</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Logon on Windows Vista</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-logon-on-windows-vista</link>
      <pubDate>Mon, 26 Feb 2007 15:17:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/02/26/smart-card-logon-on-windows-vista/</guid>
      <description><![CDATA[Differences in Vista
Smart card logon under Windows Vista has changed in several key aspects.&nbsp;...]]></description>
      <content:encoded><![CDATA[<H1 style="MARGIN: 24pt 0in 0pt"><FONT face=Cambria color=#365f91 size=5>Differences in Vista</FONT></H1>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>Smart card logon under Windows Vista has changed in several key aspects.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The primary differences are highlighted below:</FONT></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Logon is no longer triggered to smart card insertion.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Users are required to press Cntrl+Alt+Del (CAD) to start the logon process</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Valid certificates are enumerated and displayed from all smartcards and presented to the user.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Keys are no longer restricted to being in the default container and certificates in different smart cards can be chosen</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>The CSP is opened in the both the logonUI.exe and lsass.exe.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The CSP is never loaded into the winlogon process.</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Multiple TS sessions are supported in a single process.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Since Windows Vista is tightly integrated with Terminal Services to provide fast user switching, this fact should not be overlooked.</FONT></P><FONT face=Calibri size=3>
<H1 style="MARGIN: 24pt 0in 0pt"><FONT face=Cambria color=#365f91 size=5>Certificate enumeration</FONT></H1>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">When a smart card is inserted, the following steps are followed in order:</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">(Note: Unless otherwise mentioned, all operations are performed silently (CRYPT_SILENT is passed to CryptAcquireContext)</P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The Cryptographic Services Provider for that smart card is queried from the Smart card Resource Manager database.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>A qualified container name is constructed using the reader name and is passed to the CSP.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The format for that name is as follows:<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>\\.\&lt;Reader name&gt;\</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>CryptAcquireContext is called to retrieve a context to the default container.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>A failure here would cause the smart card be unusable for smart card logon</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">4.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The name of the container is retrieved by requesting the PP_CONTAINER parameter using CryptGetProvParam</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">5.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Using the context acquired in 3 the CSP is queried for the PP_USER_CERTSTORE parameter, which was added in Vista (See Section on new CAPI properties for more information).<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>On success, a certificate store is returned and program flow skips to step 8.</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">6.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>If 5. Fails, then the default container context (from 3) is queried for the AT_KEYEXCHANGE key.</P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">7.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate is then queried from the key context using KP_CERTIFICATE.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The certificate is added to an in memory certificate store.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">8.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>For each certificate in the certificate store (Either from 5 or 7), the following checks are performed.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>These are the same requirements as in Windows 2003 but they are performed before the user enters their PIN.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Many of these can be overridden using group policy settings:</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">a.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate must be valid based on the computer system clock.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(Not expired or valid in the future)</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">b.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate must not be in the AT_SIGNATURE part of a container</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">c.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate must have a valid UPN.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">d.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate must have the Digital Signature Key Usage</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">e.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The certificate must have the smart card logon EKU</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt 0.75in">Certificates which meet the above are displayed to the user display the certificates Common Name in large text along with the certificates UPN (or email address or subject depending on presence of the extensions).</P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">9.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>A certificate is then chosen and the PIN is entered.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">10.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>LogonUI.exe packages up the information and sends the information to lsass.exe to process the logon attempt.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>See the section below for its usage there.</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">11.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>If successful, logonUI.exe is torn down causing the context acquired in 3 to be released.</P>
<H2 style="MARGIN: 10pt 0in 0pt"><FONT face=Cambria color=#4f81bd size=4>New session management in Windows Vista</FONT></H2>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">In order for smart card applications to work properly under Vista, the correct handling of sessions must be observed.<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>The first user account gets session 1, the second gets session 2.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Temporary sessions (used when the user chooses disconnect instead of log off) are also assigned a session number.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Sessions last for the length of the user logon.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>On a reconnect (such as over TS or in a Fast User Switching (FUS) scenarios), the temporary session will be destroyed.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">A key distinction is that a disconnected logon session is treated identically to a disconnected remote session.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Also sessions can transfer between local and remote without requiring a process restart.</P>
<H3 style="MARGIN: 10pt 0in 0pt"><FONT face=Cambria color=#4f81bd size=3>Winscard enforcement of session separation</FONT></H3>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">By default, the smart card readers on the local machine are only available to the current active console. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>This is handled by restricting access to the smart card resource manager and is enforced by the winscard layer. Consider the following example:</P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>User A logs in and is assigned a session of 1.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>User A launches Application XYZ which monitors for smart card removal.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>User A then locks the computer and presses the FUS button so others can use the computer.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">4.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>A new session (2) is created which launches logonUI.exe. </P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">5.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>At this point all smart card contexts acquire in session 1 are invalid due to the session change.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Any use of the contexts will result in an error.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>These contexts should be closed.</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">6.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Application XYZ receives the error SCARD_E_SYSTEM_CANCELLED from their SCardGetStatusChange call.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Performs any actions based on this return.</P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">7.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Application XYZ then calls SCardAccessStartedEvent () and waits for the smart card resource manager to “start up” again.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">8.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>User A returns to the computer and logs on and is reconnected to session 1.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">9.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>The next two operations occur at the same time</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">a.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>All contexts associated with session 2 are invalidated in the same way as those contexts for session 1 where in Number 5.</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo1; mso-add-space: auto"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">b.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>The event from 7 is signaled and Application XYZ can call SCardEstablishContext to communicate with the smart card.</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri"><SPAN style="mso-list: Ignore">10.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>User A calls "run as /smartcard" when he is returned to the desktop </P>
<H2 style="MARGIN: 10pt 0in 0pt"><FONT face=Cambria color=#4f81bd size=4>Smart card logon in the LSA using Kerberos</FONT></H2>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">The operations performed in smart card logon are very similar to the ones performed in previous versions of Windows.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The primary exception is that previously the smart card operations were done via a call back into winlogon.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Now with the improved session handling in the Smart Card Resource Manager, CSP contexts are used directly in the LSA.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">All CSP calls are made impersonating the caller.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>This means initial logon will under the system context but operations such as runas /smartcard will be performed under the context of the current user.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">The majority of trouble in&nbsp;getting authentications will occur due to the session behavior.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Also, the LSA does not reacquire the Context instead relying on the CSP to handle the session change.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>In the above example, step 8 would have caused a context to be acquired by Kerberos under a session 2 impersonation token (under system context).<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>In Step 10, that same context would be reused but under a different impersonation token (the user token).<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>This could cause trouble with some CSP implementations.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt">(thanks to Dan Sledz for information)</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Tools and debugging</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-tools-and-debugging</link>
      <pubDate>Mon, 26 Feb 2007 12:43:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/02/26/smart-card-tools-and-debugging/</guid>
      <description><![CDATA[CertUtil is a tool available on Windows Vista and Windows 2003 Server Admin...]]></description>
      <content:encoded><![CDATA[<P><STRONG>CertUtil</STRONG> is a tool available on Windows Vista and Windows 2003 Server Admin Pack</P>
<H3 style="MARGIN: 12pt 0in 3pt"><SPAN style="mso-bookmark: _Toc130380043"><SPAN style="mso-bookmark: _Toc155956854">CertUtil</SPAN></SPAN>&nbsp;(tool available on Vista and W2K3 Admin pack)</H3>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt">Listing Certificates available on the card:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt">Command to list Certificates available on the Smart Card: </SPAN><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'">certutil –scinfo</SPAN><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt">Entering PIN is not required for this operation.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Hitting Escape at each PIN dialog will work as the objective is to read the public certificates on the card.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt">Deleting Certificates on the card:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt">To delete a certificate on the card, you are actually deleting a container corresponding to that certificate.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Each certificate is enclosed in a container.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The following command is used to delete container:<o:p></o:p></SPAN></P>
<P class=Char style="MARGIN: 0in 0in 8pt 0.5in"><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'">Certutil –delkey –csp “Microsoft Base Smart Card Crypto Provider”<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>“38f813f2-ec3b-4e96-ba19-38b830923be9”</SPAN></P>
<P class=Char style="MARGIN: 0in 0in 8pt 0.5in"><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'"></SPAN>&nbsp;</P><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'">
<H3 style="MARGIN: 12pt 0in 3pt"><A class="" title=_Toc155956855 name=_Toc155956855></A><A class="" title=_Toc130380044 name=_Toc130380044></A><A class="" title=_Toc130379924 name=_Toc130379924></A><SPAN style="mso-bookmark: _Toc130380044"><SPAN style="mso-bookmark: _Toc155956855"><FONT face=Arial>Kerberos debugging and trace</FONT></SPAN></SPAN><o:p></o:p></H3>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><FONT face=Arial>The Kerberos Authentication in Windows portal (<A href="https://www.microsoft.com/kerberos" mce_href="https://www.microsoft.com/kerberos">https://www.microsoft.com/kerberos</A>) is a good place to start. There are two troubleshooting docs:<o:p></o:p></FONT></SPAN></P>
<UL style="MARGIN-TOP: 0in" type=disc>
<LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; mso-layout-grid-align: none; tab-stops: list .5in"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><FONT face=Arial>Troubleshooting Kerberos Errors (<A href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx" mce_href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx">http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx</A>)<o:p></o:p></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; mso-layout-grid-align: none; tab-stops: list .5in"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><FONT face=Arial>Troubleshooting Kerberos Delegation (<A href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerbdel.mspx" mce_href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerbdel.mspx">http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerbdel.mspx</A>)<o:p></o:p></FONT></SPAN></LI></UL><o:p>
<H3 style="MARGIN: 12pt 0in 3pt"><A class="" title=_Toc155956856 name=_Toc155956856></A><A class="" title=_Toc130380045 name=_Toc130380045></A><A class="" title=_Toc130379925 name=_Toc130379925></A><SPAN style="mso-bookmark: _Toc130380045"><SPAN style="mso-bookmark: _Toc155956856"><FONT face=Arial>Smart Card Service (SCardSvr.exe – XP and SVCHost - </FONT></SPAN></SPAN><FONT face=Arial><?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:place w:st="on"><SPAN style="mso-bookmark: _Toc155956856"><SPAN style="mso-bookmark: _Toc130380045"><SPAN style="mso-bookmark: _Toc130379925">Vista</SPAN></SPAN></SPAN></st1:place><SPAN style="mso-bookmark: _Toc155956856"><SPAN style="mso-bookmark: _Toc130380045"><SPAN style="mso-bookmark: _Toc130379925">)</SPAN></SPAN></SPAN></FONT></H3><FONT face=Arial><SPAN style="mso-bookmark: _Toc155956856"><SPAN style="mso-bookmark: _Toc130380045"><SPAN style="mso-bookmark: _Toc130379925">
<H3 class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><FONT size=2>To restart “SCardSvr” services, the following commands from a Windows Command window will help.<o:p></o:p></FONT></SPAN></H3>
<H3 class=Char style="MARGIN: 0in 0in 8pt 0.5in"><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'"><FONT size=2>C:\&gt; net stop SCardSvr<o:p></o:p></FONT></SPAN></H3>
<H3 class=Char style="MARGIN: 0in 0in 8pt 0.5in"><SPAN style="FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'"><FONT size=2>C:\&gt; net start SCardSvr</FONT></SPAN><o:p></o:p></H3>
<H3 class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><o:p>&nbsp;</o:p></SPAN></H3>
<P>To findout if <B>Smart Card Service is running</B> (Note: the state field tells if the service is running or stopped):</P><PRE>C:\&gt;sc queryex scardsvr

SERVICE_NAME: scardsvr
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 1320
        FLAGS              :

C:\&gt;

</PRE>
<H3 class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"></SPAN></SPAN></SPAN></FONT></H3></o:p></SPAN>
<P><STRONG>CAPI2 Diagnostics</STRONG></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>CAPI2 Diagnostics is a feature in Microsoft® Windows® Vista and Microsoft® Windows® Server code name “Longhorn” which helps administrators with troubleshooting PKI problems. CAPI2 Diagnostics logs events in the Windows Event Log containing detailed information about certificate chain validation, certificate store operations and signature verification. This makes it easier to identify the root cause of problems and reduces the time required for diagnosis.</FONT></P>
<P><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-theme-font: minor-latin">For more information on CAPI2 Diagnostics, refer to this whitepaper on "<A class="" title="Trouble Shooting PKI Problems on Windows Vista" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=FE8EB7EA-68DA-4331-9D38-BDBF9FA2C266&amp;displaylang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=FE8EB7EA-68DA-4331-9D38-BDBF9FA2C266&amp;displaylang=en">Trouble Shooting PKI problems on Windows Vista</A>"</SPAN></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Smart Card Resource Manager Service</title>
      <link>https://docs.microsoft.com/archive/blogs/shivaram/smart-card-resource-manager-service</link>
      <pubDate>Mon, 26 Feb 2007 12:38:00 GMT</pubDate>
      <dc:creator><![CDATA[Shivaram]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/shivaram/2007/02/26/smart-card-resource-manager-service/</guid>
      <description><![CDATA[The Smart Card Resource Manager (SCRM) provides the basic infrastructure that all other smart card...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 0pt">The Smart Card Resource Manager (SCRM) provides the basic infrastructure that all other smart card components.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It manages smart card readers on the system and application interactions.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It is fully PC/SC 1.0 compliant.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p>&nbsp;</o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">The smart card resource manager is implemented as a shared service living in an svchost process.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It runs in the context of Local Service.<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p>&nbsp;</o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">The smart card resource manager service has the following service description:<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>&lt;serviceData name="SCardSvr"<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"><SPAN class=Code><FONT face=Courier>displayName="@%SystemRoot%\System32\SCardSvr.dll,-1"<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>errorControl="normal" group="SmartCardGroup" <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>imagePath="%SystemRoot%\system32\svchost.exe /k<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>LocalService" start="demand" tag="" <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>type="win32ShareProcess" security=""</FONT><A href="mailto:%22description=%22@%25SystemRoot%25\System32\SCardSvr.dll,-5" mce_href="mailto:%22description=%22@%25SystemRoot%25\System32\SCardSvr.dll,-5"><SPAN style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none"><o:p></o:p></SPAN></A></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><A href="mailto:%22description=%22@%25SystemRoot%25\System32\SCardSvr.dll,-5" mce_href="mailto:%22description=%22@%25SystemRoot%25\System32\SCardSvr.dll,-5"><SPAN style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none"><FONT face=Courier>description="@%SystemRoot%\System32\SCardSvr.dll,-5</FONT></SPAN></A><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>requiredPrivileges="SeCreateGlobalPrivilege,SeChangeNotifyPrivilege,SeImpersonatePrivilege" <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>dependOnGroup="" dependOnService="PlugPlay" <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><SPAN class=Code><FONT face=Courier>objectName="NT AUTHORITY\LocalService"&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;failureActions resetPeriod="900"&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;actions&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;action type="restartService" delay="120000"/&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;action type="restartService" delay="300000"/&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;action type="none" delay="0"/&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;/actions&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;/failureActions&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;registryKeys&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;registryKey keyName="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCardSvr\Parameters"&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;registryValue name="ServiceDll" valueType="REG_EXPAND_SZ" value="%SystemRoot%\System32\SCardSvr.dll" buildFilter=""&gt;&lt;/registryValue&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;registryValue name="ServiceMain" valueType="REG_SZ" value="CalaisMain" buildFilter=""&gt;&lt;/registryValue&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;registryValue name="ServiceDllUnloadOnStop" valueType="REG_DWORD" value="1" buildFilter=""&gt;&lt;/registryValue&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;/registryKey&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</SPAN>&lt;securityDescriptor name="ServiceXKeySecurity"/&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;/registryKeys&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;securityDescriptor name="ServiceXSecurity" buildFilter=""/&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><FONT face=Courier><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&lt;/serviceData&gt;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN class=Code><o:p><FONT face=Courier>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">By default, the service is set into manual mode.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It is the responsibility of any smart card driver author to set the service state of Automatic and call a predefined entry point&nbsp;in winscard.dll that will start the service.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>This ensures that the service is enabled when needed but is also disabled for the vast majority of users that don’t use smart cards.<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">When the service is started it performs several book keeping functions.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The first function it performs is registers itself for service notifications.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>In addition, it registers itself for PnP notifications for device removal and additions.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It also initializes its data cache and a global event that signals that the service is started.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">All communications with smart card readers on Windows should take place through the SCRM.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It provides a rich interface to track, select, and communicate with all drivers that declare themselves as a member of the smart card reader device group. The SCRM views each smart card reader slot as a unique reader and each slot is managed separately regardless of the actual physical characteristics of the device.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The SCRM handles the following high level actions:<o:p></o:p></P>
<UL style="MARGIN-TOP: 0in" type=disc>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Device introduction<o:p></o:p></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Reader initialization<o:p></o:p></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Notify clients of new readers<o:p></o:p></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Serializing access to readers<o:p></o:p></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Card Access<o:p></o:p></LI>
<LI class=MsoNormal style="MARGIN: 0in 0in 6pt; mso-list: l0 level1 lfo1; tab-stops: list .5in">Tunneling of reader specific commands<o:p></o:p></LI></UL><o:p></o:p>]]></content:encoded>
    </item>
  </channel>
</rss>