<?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: cst(code signing tool) binary issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1752616#M215286</link>
    <description>&lt;P&gt;No support for ARM platform as I know so far.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you see these platform supported.&amp;nbsp; linux32 mingw32&amp;nbsp;linux64 osx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 08:02:25 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2023-11-06T08:02:25Z</dc:date>
    <item>
      <title>cst(code signing tool) binary issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1752313#M215241</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the imx8qxp-mek board and implementing the secure-boot.&lt;/P&gt;&lt;P&gt;So, I am following this doc for signing the uboot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using the debian yocto environment for build package.&lt;/P&gt;&lt;P&gt;I have to use the cst binary to sign the uboot-atf file. which I am using in the uboot debian/rules file.&lt;/P&gt;&lt;P&gt;Below is my code snippet for signing the uboot-atf&lt;/P&gt;&lt;P&gt;ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))&lt;BR /&gt;export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-&lt;BR /&gt;SET_CROSS_BUILD_TOOLS=CROSS_BUILD_TOOLS=y&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;override_dh_auto_build:&lt;/P&gt;&lt;P&gt;$(MAKE) $(PARALLEL_BUILD) -C tools/imx/ SOC=${IMX8_SOC} REV=C0 u-boot-atf-container.img&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3933"&gt;@echo&lt;/a&gt; "--- Copy uboot-atf ---"&lt;BR /&gt;set -x&lt;BR /&gt;cp tools/imx/${IMX8_SOC_DIR}/u-boot-atf-container.img release/linux64/&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3933"&gt;@echo&lt;/a&gt; "--- Sign the uboot-atf ---"&lt;BR /&gt;cd release/linux64/ &amp;amp;&amp;amp; \&lt;BR /&gt;echo "---- Current directory: $$(pwd) ---" &amp;amp;&amp;amp; \&lt;BR /&gt;ls -l &amp;amp;&amp;amp; \&lt;BR /&gt;bash ./bin/cst -i csf_uboot_atf.txt -o signed-u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But while doing this I am getting the error saying below.&lt;/P&gt;&lt;P&gt;./&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;bin/cst: ./bin/cst: cannot execute binary file&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Could you please give some suggestion on this issue, I am unable to run the cst binary !&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is this because cst is not supported on ARM64 or platform issue?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;How to acheive this uboot-atf signing and then using this further for imx-mkimage flash_spl build.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Your input on this would really be helpful.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;R&lt;/STRONG&gt;egards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Rk&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 17:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1752313#M215241</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-11-04T17:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: cst(code signing tool) binary issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1752616#M215286</link>
      <description>&lt;P&gt;No support for ARM platform as I know so far.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you see these platform supported.&amp;nbsp; linux32 mingw32&amp;nbsp;linux64 osx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1752616#M215286</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-11-06T08:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: cst(code signing tool) binary issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1755607#M215563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while running the ahab_pki_tree.sh on imx8qxp board, I am getting below error.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;release/linux64# ./ahab_pki_tree.sh&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;This script is a part of the Code signing tools for NXP's&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Advanced High Assurance Boot. It generates a basic PKI tree. The&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;PKI tree consists of one or more Super Root Keys (SRK), with each&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SRK having one subordinate keys:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;+ a Signing key (SGK)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Additional keys can be added to the PKI tree but a separate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;script is available for this. This this script assumes openssl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;is installed on your system and is included in your search&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;path. Finally, the private keys generated are password&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;protectedwith the password provided by the file key_pass.txt.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;The format of the file is the password repeated twice:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;my_password&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;my_password&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;All private keys in the PKI tree are in PKCS #8 format will be&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;protected by the same password.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Do you want to use an existing CA key (y/n)?: n&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Do you want to use Elliptic Curve Cryptography (y/n)?: y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Enter length for elliptic curve to be used for PKI tree:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Possible values p256, p384, p521: p384&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Enter the digest algorithm to use: sha384&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Enter PKI tree duration (years): 5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Do you want the SRK certificates to have the CA flag set? (y/n)?: y&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;+++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;+ Generating CA key and certificate +&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;+++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Can't open "../ca/openssl.cnf" for reading, No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(../ca/openssl.cnf, r)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Can't open "temp_ca.pem" for reading, No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(temp_ca.pem, r)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Can't open "temp_ca.pem" for reading, No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(temp_ca.pem, r)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;rm: cannot remove 'temp_ca.pem': No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;+ Generating SRK key and certificate 1 +&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;read EC key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;writing EC key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Using configuration from ../ca/openssl.cnf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Can't open "../ca/openssl.cnf" for reading, No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(../ca/openssl.cnf, r)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;+ Generating SGK key and certificate 1 +&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;++++++++++++++++++++++++++++++++++++++++&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;read EC key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;writing EC key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Using configuration from ../ca/openssl.cnf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Can't open "../ca/openssl.cnf" for reading, No such file or directory&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2030030355000000:error:80000002:system library:BIO_new_file:No such file or director&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Am i missing any thing here.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Could you please suggest on this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Rk&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 12:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cst-code-signing-tool-binary-issue/m-p/1755607#M215563</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-11-10T12:33:10Z</dc:date>
    </item>
  </channel>
</rss>

