Entrust provides a PKCS #11 library to automate signing with third-party applications. See below for how to install and use this library to automate signatures.