How to install and use SoftHSM on Ubuntu 16.04 LTS

Installing Laravel PHP Framework on Ubuntu 18.04 LTS for Apache
How to install Apache, PHP 7.2 and MySQL on CentOS 7.4 (LAMP)
Linux last Command Tutorial for Beginners (8 Examples)

SoftHSM is basically an implementation of a cryptographic store accessible through a PKCS #11 interface. The PKCS#11 interface is used to communicate or access the cryptographic devices such as HSM (Hardware Security Modules) and smart cards. The primary purpose of HSM devices is to generate cryptographic keys and sign/encrypt information without revealing the private key to the others.