Loading the pkcs11 engine dynamicly with scep_conf_set fails with this error if the path to the shared object points to the wrong file. The problem is probably somewhere here https://github.com/Javex/libscep/blob/develop/src/configuration.c#L30