When you use the PKCS #11 library, your application runs as a specific crypto user (CU) in your Hardware Security Module (HSM) instance and can access only the keys owned by or shared with that CU.
To authenticate, pass the CU credentials to the PKCS #11 C_Login function using the pin parameter. For HSM instances, use the following format. Only CU login is supported.
<username>:<password>Example: The following pin value authenticates as the CU with username crypto_user and password crypto_user_1234qwer!.
crypto_user:crypto_user_1234qwer!