Smart Card integration
If your target's login process is protected with PKCS #11 smart card authentication, you can implement this functionality into your Invicti Platform installation on your internal Agent Windows installation.
This document provides instructions on how to add PKCS #11 smart card login functionality to your targets.
Steps to enable PKCS #11 smart card functionality
- Add necessary Environment Variables from a command prompt with administrative privileges:
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v INVICTI_PKCS11_MODULE /t REG_SZ /d "C:\Program Files\Yubico\Yubico PIV Tool\bin\libykcs11.dll" /f |
🛠️ | Where:
|
- If you need to use specific KEY and CERT files with your smart card, you can add the following additional commands:
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v INVICTI_PKCS11_KEY /t REG_SZ /d "pkcs11:object=Private key for PIV Authentication;type=private" /f |
🛠️ | Where:
|
- Restart the machine.
NOTES ABOUT KEY AND CERTIFICATE MATCHING When a client certificate is requested and PKCS #11 is configured, the engine selects the key/certificate using the following criteria: Specified Key or Certificate:
Automatic Detection (If no key or certificate is specified) - The engine automatically identifies the client certificate and its associated private key based on:
|
Steps to disable PKCS #11 smartcard functionality
- Remove the previously added Environment Variables from a command prompt with administrative privileges:
REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v INVICTI_PKCS11_MODULE /f |
- Restart the machine.