From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jTUSn-0005gd-RN for rauc@pengutronix.de; Tue, 28 Apr 2020 19:56:10 +0200 Received: by mail-ed1-x52f.google.com with SMTP id k22so17123397eds.6 for ; Tue, 28 Apr 2020 10:56:09 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Diego_Gonz=C3=A1lez?= Date: Tue, 28 Apr 2020 19:55:16 +0200 Message-ID: Subject: [RAUC] problems verifying a bundle List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2079201096==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: rauc@pengutronix.de --===============2079201096== Content-Type: multipart/alternative; boundary="000000000000d9bf3f05a45d8b01" --000000000000d9bf3f05a45d8b01 Content-Type: text/plain; charset="UTF-8" Hello, I am having issues when I try to verify a bundle downloaded on the device. I am using rauc 1.3 through the meta-rauc for Yocto. I am running *rauc info [name of the bundle].raucb* on the device. The output I get is the following: rauc-Message: 17:24:54.156: Debug log domains: 'all' (rauc:528): rauc-DEBUG: 17:24:54.165: input bundle: /var/1/rauc-bundle-raspberrypi3-64.raucb (rauc:528): rauc-DEBUG: 17:24:54.166: No value for key "max-bundle-download-size" in [system] defined - using default value of 8388608 bytes. (rauc:528): rauc-DEBUG: 17:24:54.166: No mount prefix provided, using /mnt/rauc/ as default rauc-Message: 17:24:54.167: Reading bundle: /var/1/rauc-bundle-raspberrypi3-64.raucb (rauc:528): GLib-GIO-DEBUG: 17:24:54.170: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? rauc-Message: 17:24:54.173: Verifying bundle... *signature verification failed: Verify error:unsupported certificate purpose* I don't really know how to get past this issue. I have included in a file the root certificate, intermediate certificate and the certificate that corresponds to they key used to sign the bundle. And I point to that file with path=/etc/rauc/firmware-keyring.pem in the system.conf file. previous to doing that I was getting: [...] *signature verification failed: Verify error:unable to get local issuer certificate* With regards to the environment variables this is what I am using: RAUC_KEY_FILE="/h4-work/certs/rauc/firmware-key.pem" RAUC_CERT_FILE="/h4-work/certs/rauc/firmware.pem" RAUC_KEYRING_FILE="firmware-keyring.pem" (which is the file that I am using on the device) I don't really know how to get past this issue, any points would be highly appreciated. Cheers, Diego --000000000000d9bf3f05a45d8b01 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am having issues wh= en I try to verify a bundle downloaded on the device. I am using rauc 1.3 t= hrough the meta-rauc for Yocto.

I am running = rauc info [name of the bundle].raucb on the device. The output I get= is the following:

rauc-Message: 17:24:54.156: Deb= ug log domains: 'all'
(rauc:528): rauc-DEBUG: 17:24:54.165: inpu= t bundle: /var/1/rauc-bundle-raspberrypi3-64.raucb
(rauc:528): rauc-DEBU= G: 17:24:54.166: No value for key "max-bundle-download-size" in [= system] defined - using default value of 8388608 bytes.
(rauc:528): rauc= -DEBUG: 17:24:54.166: No mount prefix provided, using /mnt/rauc/ as default=
rauc-Message: 17:24:54.167: Reading bundle: /var/1/rauc-bundle-raspberr= ypi3-64.raucb
(rauc:528): GLib-GIO-DEBUG: 17:24:54.170: _g_io_module_get= _default: Found default implementation local (GLocalVfs) for ?gio-vfs?
r= auc-Message: 17:24:54.173: Verifying bundle...
signature = verification failed: Verify error:unsupported certificate purpose

I don't really know how to get past this issue.= I have included in a file the root certificate, intermediate certificate a= nd the certificate that corresponds to they key used to sign the bundle. An= d I point to that file with path=3D/etc/rauc/firmware-keyring.pem in the sy= stem.conf file.

previous to doing that I was g= etting:
[...]
signature verification failed: Ver= ify error:unable to get local issuer certificate

With regards to the environment variables this is what I am using:<= /div>

RAUC_KEY_FILE=3D"/h4-work/certs/rauc/firmware= -key.pem"
RAUC_CERT_FILE=3D"/h4-work/certs/rauc/fir= mware.pem"
RAUC_KEYRING_FILE=3D"firmware-keyring.pe= m" (which is the file that I am using on the device)
<= br>
I don't really know how to get past this issue, any point= s would be highly appreciated.

Cheers,
D= iego


--000000000000d9bf3f05a45d8b01-- --===============2079201096== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ RAUC mailing list --===============2079201096==--