Comment 0 for bug 2022088

Revision history for this message
Frank Heimes (fheimes) wrote :

After having the opencryptoki and libopencryptoki0 installed
dlopen with libopencryptoki.so is not able to find 'libopencryptoki.so':

# p11sak list-key all --slot 1 --pin <pin>
Error: failed to open pkcs11 lib 'libopencryptoki.so'

The 'opencryptoki-$(target_cpu).conf' file needs to be placed in '/etc/ld.so.conf.d/',
hat is generated by make, but was up to now explicitly removed before installing (in d/rules).

'opencryptoki-$(target_cpu).conf' contains lines like this:
/usr/lib/s390x-linux-gnu/opencryptoki
/usr/lib/s390x-linux-gnu/opencryptoki/stdll

'opencryptoki-$(target_cpu).conf' needs to be properly placed into '/etc/ld.so.conf.d/',
and ldconfig called (via d/triggers).