Hello,
I recently bought the HSM 6 and am having an issue with creating a CSR using OpenSSL.
The HSM 6 works fine and I have been able to create a key pair in slot 16.
The thing is I now want to create a CSR and sign it using this private key I stored in slot 16. But when I run the command, I always got that “Invalid engine ‘zymkey_ssl’” issue.
$ ZK_SSL_SLOT=16 openssl req -key bogus.key -new -out myCert.csr -engine zymkey_ssl -keyform e
Invalid engine "zymkey_ssl"
4090218F7F000000:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlfcn.c:118:filename(/usr/lib/aarch64-linux-gnu/engines-3/zymkey_ssl.so): /usr/lib/aarch64-linux-gnu/engines-3/zymkey_ssl.so: cannot open shared object file: No such file or directory
4090218F7F000000:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.c:152:
4090218F7F000000:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:442:
4090218F7F000000:error:13000074:engine routines:ENGINE_by_id:no such engine:../crypto/engine/eng_list.c:433:id=zymkey_ssl
4090218F7F000000:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlfcn.c:118:filename(libzymkey_ssl.so): libzymkey_ssl.so: cannot open shared object file: No such file or directory
4090218F7F000000:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.c:152:
4090218F7F000000:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:442:
No engine specified for loading private key
No filename or uri specified for loading
private key
I am using the following Openssl version :
$ openssl version
OpenSSL 3.0.11 19 Sep 2023 (Library: OpenSSL 3.0.11 19 Sep 2023)
And the following Raspbian version :
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Thank a lot to anyone who could help me !