Troubleshooting

Error

Diagnosis

The CryptoServer PKCS#11 Library R3 is not initialized.

Error CKR_CRYPTOKI_NOT_INITIALIZED occurred

PKCS#11 Slot is not initialized. Refer Initialize a Slot

OpenSSL> engine -t dynamic -pre

SO_PATH:/usr/lib64/openssl/engines/pkcs11.so

-pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD

-pre

MODULE_PATH:/opt/utimaco/lib/libcs_pkcs11_ R3.soengine: Cannot mix flags and engine names. engine: Use -help for summary.

error in engine

Run the correct command

OpenSSL> engine dynamic -pre

SO_PATH:/usr/lib64/engines-1.1/pkcs11.so pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD pre

MODULE_PATH:/opt/utimaco/lib/libcs_pkcs 11_R3.so

openssl req -engine pkcs11 -new -key

4F70656E73736C4B6579 -keyform engine -out req.pem -text -x509 -subj "CN=Utimaco" invalid engine "pkcs11"

139703122831248:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/lib64/open ssl/engines/libpkcs11.so): libcrypto.so.1.1:

cannot open shared object file: No such file or directory

139703122831248:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:233:

139703122831248:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:467:

139703122831248:error:2606A074:engine

routines:ENGINE_by_id:no such engine:eng_list.c:392:id=pkcs11

139703122831248:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(libpkcs11.so): libpkcs11.so: cannot open shared object file: No such file or directory

139703122831248:error:25070067:DSO support routines:DSO_load:could not load the shared

library:dso_lib.c:233:

139703122831248:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:467: no engine specified unable to load Private Key

Export the below value of LD_LIBRARY_PATH and Path for Openssl and libp11 to avoid the above error.

export

LD_LIBRARY_PATH=/usr/local/openssl/lib:/u sr/local/libp11/lib export PATH=/usr/local/openssl/bin:$PATH

List of errors and their diagnoses