<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Replacing initial ISD keyset (KVN 0xFF) in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Replacing-initial-ISD-keyset-KVN-0xFF/m-p/1860419#M1603</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the JCOP 4.5 P71 (JCOP-ID-2) product, we would like to replace the initial ISD keys (SCP03, AES), which have the Key Version Number is 255 (0xFF), with new keys having a different KVN, for example 0x01.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have found an example JCShell scripts, but we are using a different tool in production to send the APDU commands so I would like to understand which GlobalPlatform APDU commands to use and how.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example in JCShell script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# update the key-set
# the keys are defined in the authISD script
if ${replaceKeyset}
  put-keyset  -m replace -r ${replaceKeyset;q} ${newKeySet}
else
  put-keyset  -r 255 ${newKeySet}
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the GlobalPlatform Card Specification v2.3.1, the &lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;PUT KEY&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;command to replace existing keys does not allow the value 0xFF to be specified in the P1 parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is KVN 0xFF a special case? How can we replace the keys in this case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="JCOP-ID-2" id="JCOP-ID-2"&gt;&lt;/LI-PRODUCT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 09:47:58 GMT</pubDate>
    <dc:creator>nc-adnan</dc:creator>
    <dc:date>2024-05-07T09:47:58Z</dc:date>
    <item>
      <title>Replacing initial ISD keyset (KVN 0xFF)</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Replacing-initial-ISD-keyset-KVN-0xFF/m-p/1860419#M1603</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the JCOP 4.5 P71 (JCOP-ID-2) product, we would like to replace the initial ISD keys (SCP03, AES), which have the Key Version Number is 255 (0xFF), with new keys having a different KVN, for example 0x01.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have found an example JCShell scripts, but we are using a different tool in production to send the APDU commands so I would like to understand which GlobalPlatform APDU commands to use and how.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example in JCShell script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# update the key-set
# the keys are defined in the authISD script
if ${replaceKeyset}
  put-keyset  -m replace -r ${replaceKeyset;q} ${newKeySet}
else
  put-keyset  -r 255 ${newKeySet}
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the GlobalPlatform Card Specification v2.3.1, the &lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;PUT KEY&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;command to replace existing keys does not allow the value 0xFF to be specified in the P1 parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is KVN 0xFF a special case? How can we replace the keys in this case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="JCOP-ID-2" id="JCOP-ID-2"&gt;&lt;/LI-PRODUCT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 09:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Replacing-initial-ISD-keyset-KVN-0xFF/m-p/1860419#M1603</guid>
      <dc:creator>nc-adnan</dc:creator>
      <dc:date>2024-05-07T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing initial ISD keyset (KVN 0xFF)</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Replacing-initial-ISD-keyset-KVN-0xFF/m-p/1860922#M1604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233179"&gt;@nc-adnan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually P71 is not a mass market product so the related technical discussion is not allowed here. Would you please create a private ticket instead? Please kindly refer to the following for details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/video/tutorial-for-nxp-support-case-portal:NCP-VIDEO" target="_blank"&gt;https://www.nxp.com/video/tutorial-for-nxp-support-case-portal:NCP-VIDEO&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 01:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Replacing-initial-ISD-keyset-KVN-0xFF/m-p/1860922#M1604</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-05-08T01:45:44Z</dc:date>
    </item>
  </channel>
</rss>

