Dear Maintainer,
SWUpdate is build for signed images by default. If I create a
certificate according to [1]. The following error occurs:
```
root@5c422e3506bf:/# swupdate
Error: SWUpdate is built for signed images, provide a public key file.
root@5c422e3506bf:/# openssl req -x509 -newkey rsa:4096 -noenc -keyout mycert.key.pem \
-out mycert.cert.pem -subj "/O=SWUpdate/CN=target" \
-addext extendedKeyUsage=1.3.6.1.5.5.7.3.4 -addext keyUsage=digitalSignature
root@5c422e3506bf:/# swupdate -k mycert.cert.pem
SWUpdate v2026.05.1
Licensed under GPLv2. See source distribution for detailed copyright notices.
[ERROR] : SWUPDATE failed [0] ERROR : mbedtls_pk_parse_public_keyfile: -15714
[ERROR] : SWUPDATE failed [0] ERROR : Error: Crypto cannot be initialized.
```
Best regards
Quirin
[1]: https://sbabic.github.io/swupdate/signed_images.html#generating-self-signed-certificates