I'm not able to login via smart card PIN on enterprise websites. This works in other browsers Chrome/Brave/Edge etc.
Secure connection failed A PKCS #11 module returned CKG_GENERAL_ERROR, indicating that an unrecoverable error has occurred. Error code: SEC_ERROR_PKCS11_GENERAL_ERROR I'm using TPM 2.0.
2 Answers
Step 1
Install OpenSC, which is an open source driver for smart card pin which works with firefox. Install the Windows MSI 64 bit installer.
Step 2
Follow the instructions here, to add the driver to firefox and start using.
Installing OpenSC PKCS#11 Module in Firefox, Step by Step · OpenSC/OpenSC Wiki · GitHub
This is what it looks like when the driver is loaded into firefox, 
Step 3
Restart the browser and try to login again to your company site.
You will now get a prompt to input your PIN.
1It's not useful to install OpenSC.
[1]: [2]:
The Path must be : C:\Windows\System32\cardos11_64.dll Test using "connexion" button.
I'm using this all days with my entreprize PKI card.
1