For Debian-based distributions e.g., Ubuntu, the package for the engine is libenginepkcs11-openssl1.1 , for Red Hat-based distributions the package is openssl-pkcs11 . To install it on Ubuntu, perform this command:
$sudo apt install openssl libengine-pkcs11-openssl1.1