<?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>i.MX ProcessorsのトピックRe: [imx6] Cannot open key file when CST tool generate csf data.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404687#M60136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;I have fixed this issue. Root cause is a wrong format of "key_pass.txt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 00:45:02 GMT</pubDate>
    <dc:creator>melchang</dc:creator>
    <dc:date>2015-04-17T00:45:02Z</dc:date>
    <item>
      <title>[imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404683#M60132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I use CST tools 2.2 to generate HAB key and certificate. The following is my procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd keys&lt;BR /&gt;creat serial and key_pass.txt.&lt;BR /&gt;./hab4_pki_tree.sh&amp;nbsp; (n,2048,10,4,y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd ../crts&lt;BR /&gt;../linux/srktool -h 4 -t SRK_1_2_3_4_table.bin -e SRK_1_2_3_4_fuse.bin -d sha256 -c SRK1_sha256_2048_65537_v3_ca_crt.pem,SRK2_sha256_2048_65537_v3_ca_crt.pem,SRK3_sha256_2048_65537_v3_ca_crt.pem,SRK4_sha256_2048_65537_v3_ca_crt.pem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd ../u-boot&lt;BR /&gt;objcopy -I binary -O binary --pad-to 0x6B000 --gap-fill=0x5A u-boot.bin u-boot-pad.bin&lt;BR /&gt;../linux/cst --o u-boot_csf.bin &amp;lt; u-boot.csf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I generate csf data, cst tool return an error message as below.&lt;BR /&gt;Error: Cannot open key file ../keys/CSF1_1_sha256_2048_65537_v3_usr_key.pem&lt;BR /&gt;4149528200:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:467:&lt;BR /&gt;4149528200:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:97:&lt;BR /&gt;4149528200:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:123:&lt;BR /&gt;4149528200:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:132:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on error message ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My u-boot.csf,&lt;BR /&gt;[Header]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version = 4.1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security Configuration = Open&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hash Algorithm = sha256&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine Configuration = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Certificate Format = X509&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Signature Format = CMS&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; File = "../crts/SRK_1_2_3_4_table.bin"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source index = 0&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;/P&gt;&lt;P&gt;[Install Key]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verification index = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Target index = 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; File = "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;# Sign padded u-boot starting at the IVT through to the end with&lt;BR /&gt;# length = 0x6AC00&lt;BR /&gt;# This covers the essential parts: IVT, boot data and DCD.&lt;BR /&gt;# Blocks have the following definition:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Image block start address on i.MX, Offset from start of image file,&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Length of block in bytes, image data file&lt;BR /&gt;[Authenticate Data]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verification index = 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks = 0x27800400 0x400 0x6AC00 "u-boot-pad.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks/Mel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 08:36:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404683#M60132</guid>
      <dc:creator>melchang</dc:creator>
      <dc:date>2015-04-14T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404684#M60133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fix typos as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cd ../crts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;../linux/srktool -h 4 -t SRK_1_2_3_4_table.bin -e SRK_1_2_3_4_fuse.bin -d sha256 -c SRK1_sha256_&lt;STRONG&gt;2048&lt;/STRONG&gt;_65537_v3_ca_crt.pem,SRK2_sha256_&lt;STRONG&gt;2048&lt;/STRONG&gt;_65537_v3_ca_crt.pem,SRK3_sha256_&lt;STRONG&gt;2048&lt;/STRONG&gt;_65537_v3_ca_crt.pem,SRK4_sha256_&lt;STRONG&gt;2048&lt;/STRONG&gt;_65537_v3_ca_crt.pem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mel.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404684#M60133</guid>
      <dc:creator>melchang</dc:creator>
      <dc:date>2015-04-14T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404685#M60134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CST works with relative paths to the path where the command was executed. And it is expecting to be called from the linux folder, like this:&lt;/P&gt;&lt;P&gt;./cst --o u-boot_csf.bin &amp;lt; u-boot.csf&lt;/P&gt;&lt;P&gt;In this case you will have to make a change to your csf:&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verification index = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks = 0x27800400 0x400 0x6AC00 "&lt;STRONG&gt;&amp;lt;ABSOULTE PATH&amp;gt;/&lt;/STRONG&gt;u-boot-pad.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is possible to execute it the way you want &lt;/P&gt;&lt;P&gt;../linux/cst --o u-boot_csf.bin &amp;lt; u-boot.csf&lt;/P&gt;&lt;P&gt;Then you will have to give absolute paths in the csf.&lt;/P&gt;&lt;P&gt;[Header]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version = 4.1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security Configuration = Open&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hash Algorithm = sha256&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine Configuration = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Certificate Format = X509&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Signature Format = CMS&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;File =&lt;STRONG&gt; "&amp;lt;ABSOULTE PATH&amp;gt;&lt;/STRONG&gt;/crts/SRK_1_2_3_4_table.bin"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source index = 0&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; File = "&lt;STRONG&gt;&amp;lt;ABSOULTE PATH&amp;gt;&lt;/STRONG&gt;/crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;/P&gt;&lt;P&gt;[Install Key]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verification index = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Target index = 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; File = "&lt;STRONG&gt;&amp;lt;ABSOULTE PATH&amp;gt;&lt;/STRONG&gt;/crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;# Sign padded u-boot starting at the IVT through to the end with&lt;BR /&gt;# length = 0x6AC00&lt;BR /&gt;# This covers the essential parts: IVT, boot data and DCD.&lt;BR /&gt;# Blocks have the following definition:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Image block start address on i.MX, Offset from start of image file,&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; Length of block in bytes, image data file&lt;BR /&gt;[Authenticate Data]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verification index = 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks = 0x27800400 0x400 0x6AC00 "u-boot-pad.bin"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Raul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 16:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404685#M60134</guid>
      <dc:creator>raulcardenas-b4</dc:creator>
      <dc:date>2015-04-15T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404686#M60135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; If You use Yocto BSP, please check its specifics on the following : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;"Mx6 HAB (High Assurance Boot)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="96451" data-objecttype="102" href="https://community.freescale.com/docs/DOC-96451"&gt;https://community.freescale.com/docs/DOC-96451&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 08:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404686#M60135</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-04-16T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404687#M60136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;I have fixed this issue. Root cause is a wrong format of "key_pass.txt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 00:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404687#M60136</guid>
      <dc:creator>melchang</dc:creator>
      <dc:date>2015-04-17T00:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404688#M60137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, would you mind sharing me what is the correct format of key_pass.txt since I have the same problem even though with the same key_pass.txt the keys are generated well... Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 06:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404688#M60137</guid>
      <dc:creator>tuyennguyen</dc:creator>
      <dc:date>2015-04-17T06:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6] Cannot open key file when CST tool generate csf data.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404689#M60138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;My issue is because I use windows text editor to create "key_pass.txt" file. It can be fixed if I use Linux text editor to create file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure,but I think the root cause is the different line endings format between Windows and Linux text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mel. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-Cannot-open-key-file-when-CST-tool-generate-csf-data/m-p/404689#M60138</guid>
      <dc:creator>melchang</dc:creator>
      <dc:date>2015-04-17T16:13:07Z</dc:date>
    </item>
  </channel>
</rss>

