Hi Sam,
On 05.01.22 23:31, Sam Kearney wrote:
> Hello,
>
> I’m wondering if swupdate has a way to support this use case:
>
> Some of our products require the ability to attempt to verify a signed
> firmware image against multiple public keys.
This is not supported, or at least not explicitly - see later.
> We provision our embedded
> devices with multiple public keys for signed firmware verification, and
> the desired behavior is that when a new firmware file is received, each
> public key is tried in turn; if any of them verify successfully, the
> firmware is accepted.
>
> When configured for firmware verification with CONFIG_SIGNED_IMAGES,
> swupdate appears to accept a single public key file using the -k
> argument.
Correct.
> I’m wondering if there’s a way to provide multiple files,
No.
> or
> possibly one file with multiple public keys in it, and have swupdate try
> each of them in turn when receiving a new firmware file?
It should work with certificates, because the provided file is read in a
loop until no certificate is found. But it should not work with plain RSA.
> Would this work
> in the software as-is, or can you think of a workaround to implement
> this?
It should work with certificates, as this is the most frequent use case
with multiple verification.
> If not, would you be open to a feature request or patch to
> implement this functionality?
Yes, it can be added.
Best regards,
Stefano Babic
>
> Thanks,
>
> Sam
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swupdate+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/swupdate/DM6PR11MB4105E554068BCD143128E66E874B9%40DM6PR11MB4105.namprd11.prod.outlook.com
> <
https://groups.google.com/d/msgid/swupdate/DM6PR11MB4105E554068BCD143128E66E874B9%40DM6PR11MB4105.namprd11.prod.outlook.com?utm_medium=email&utm_source=footer>.
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================