Comments (3)
@alonbl when you have some time please have a look on the logs
from gnupg-pkcs11-scd.
I have tried to use softhsm and I have the same issue
gnupg-pkcs11-scd[318.1816479552]: config: debug=1, verbose=1
gnupg-pkcs11-scd[318.1816479552]: config: pin_cache=-1
gnupg-pkcs11-scd[318.1816479552]: config: provider: name=nitrokey, library=/usr/lib/softhsm/libsofthsm2.so, allow_protected=0, cert_is_private=0, private_mask=00000000
gnupg-pkcs11-scd[318.1816479552]: run_mode: 2
gnupg-pkcs11-scd[318.1816479552]: crypto: openssl
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='7', value=0x7fffff65e0c0, value_size=8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 7=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='6', value=0x7fffff65e0c8, value_size=8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 6=0x555755b7dce0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='9', value=0x7fffff65e0c0, value_size=8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 9=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='8', value=0x7fffff65e0c8, value_size=8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 8=0x555755b7ddf0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='10', value=0x7fffff65e0cc, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 10=0x1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty entry property='11', value=0x7fffff65e0cc, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting property 11=0xffffffff
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_registerProvider entry version='1.28.0', reference='nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Register provider 'nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_registerProvider Provider 'nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Provider 'nitrokey' registered rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_registerProvider return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='0', value=0x55575781b580, value_size=32
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:location=/usr/lib/softhsm/libsofthsm2.so
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='1', value=0x7fffff65e0ac, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:allow_protected_auth=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='2', value=0x7fffff65e0a8, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:mask_private_mode=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='3', value=0x7fffff65e0a4, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:slot_event_method=0x2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='4', value=0x7fffff65e0a0, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:slot_poll_interval=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty entry reference='nitrokey', property='5', value=0x7fffff65e0d0, value_size=4
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Setting provider property nitrokey:cert_is_private=0x0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_setProviderProperty return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_initializeProvider entry pid=318, reference='nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Initializing provider 'nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_initializeProvider Provider 'nitrokey' manufacturerID 'SoftHSM'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_notify entry
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_notify return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_initializeProvider return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: Listening to socket '/tmp/gnupg-pkcs11-scd.H4Q6oP/agent.S'
gnupg-pkcs11-scd[318.1816479552]: accepting connection
gnupg-pkcs11-scd[318]: chan_0 -> OK PKCS#11 smart-card server for GnuPG ready
gnupg-pkcs11-scd[318.1816479552]: processing connection
gnupg-pkcs11-scd[318]: chan_0 <- GETINFO socket_name
gnupg-pkcs11-scd[318]: chan_0 -> D /tmp/gnupg-pkcs11-scd.H4Q6oP/agent.S
gnupg-pkcs11-scd[318]: chan_0 -> OK
gnupg-pkcs11-scd[318]: chan_0 <- LEARN --force
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_enumTokenIds entry method=1, p_token_id_list=0x7fffff65df80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x55575781cb50, token_present=1, pSlotList=0x7fffff65de50, pulCount=0x7fffff65de48
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x555757851358
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65ddf0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x555757851378
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65ddf0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_enumTokenIds return rv=0-'CKR_OK', *p_token_id_list=0x7fffff65df80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=(nil), *max=0000000000000000, token_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000023, sz='(null)'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=0x555757851720, *max=0000000000000023, token_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000023, sz='SoftHSM\x20project/SoftHSM\x20v2//'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenIdList entry token_id_list=0x555757851370
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenIdList return
gnupg-pkcs11-scd[318]: chan_0 -> S SERIALNO D27600012401115031319909A5ED1111
gnupg-pkcs11-scd[318]: chan_0 -> S APPTYPE PKCS11
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_enumCertificateIds entry method=1, mask_prompt=00000003, p_cert_id_issuers_list=0x7fffff65dfb8, p_cert_id_end_list=0x7fffff65dfc0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x55575781cb50, token_present=1, pSlotList=0x7fffff65de78, pulCount=0x7fffff65de70
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7fffff65de80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65de20
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId entry token_id=0x555757855100, p_session=0x7fffff65de88
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Creating a new session
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId entry to=0x555757851698 form=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId return rv=0-'CKR_OK', *to=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId return rv=0-'CKR_OK', *p_session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_enumSessionCertificates entry session=0x555757851680, user_data=0x555757853d70, mask_prompt=00000003
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate return rv=179-'CKR_SESSION_HANDLE_INVALID'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Get certificate attributes failed: 179:'CKR_SESSION_HANDLE_INVALID'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_login entry session=0x555757851680, is_publicOnly=1, readonly=1, user_data=0x555757853d70, mask_prompt=00000001
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_logout entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_logout return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset entry session=0x555757851680, user_data=0x555757853d70, mask_prompt=00000001, p_slot=0x7fffff65dd20
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset Expected token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='c727f6c35492fe76', label='BRC1K Sign Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x55575781cb50, token_present=1, pSlotList=0x7fffff65dbf0, pulCount=0x7fffff65dbe8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7fffff65dbf8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65db80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x5557578559e0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x5557578559e0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset Found token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='c727f6c35492fe76', label='BRC1K Sign Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5557578559e0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset return rv=0-'CKR_OK', *p_slot=1418919542
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_login return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate session->pin_expire_time=0, time=1706631834
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_findObjects entry session=0x555757851680, filter=0x7fffff65ddb0, filter_attrs=1, p_objects=0x7fffff65dd90, p_objects_found=0x7fffff65dd88
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_findObjects return rv=0-'CKR_OK', *p_objects_found=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getObjectAttributes entry session=0x555757851680, object=2, attrs=0x7fffff65ddd0, count=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getObjectAttributes return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_newCertificateId entry p_certificate_id=0x7fffff65dda8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_newCertificateId return rv=0-'CKR_OK', *p_certificate_id=0x555757856940
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId entry to=0x555757856940 form=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId return rv=0-'CKR_OK', *to=0x555757856d70
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_updateCertificateIdDescription entry certificate_id=0x555757856940
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757891c90, ptr=(nil), ad=0x555757891d20, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_updateCertificateIdDescription return displayName='/C=BE/ST=OS/L=Paris/O=BRC1K/OU=TESTCN/CN=TESTCN on BRC1K Sign Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_freeObjectAttributes entry attrs=0x7fffff65ddd0, count=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_freeObjectAttributes return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_enumSessionCertificates return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7fffff65de80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65de20
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId entry token_id=0x555757855100, p_session=0x7fffff65de88
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Creating a new session
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId entry to=0x555757855b28 form=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_duplicateTokenId return rv=0-'CKR_OK', *to=0x555757892090
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId return rv=0-'CKR_OK', *p_session=0x555757855b10
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_enumSessionCertificates entry session=0x555757855b10, user_data=0x555757853d70, mask_prompt=00000003
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate entry session=0x555757855b10
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate return rv=179-'CKR_SESSION_HANDLE_INVALID'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Get certificate attributes failed: 179:'CKR_SESSION_HANDLE_INVALID'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_login entry session=0x555757855b10, is_publicOnly=1, readonly=1, user_data=0x555757853d70, mask_prompt=00000001
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_logout entry session=0x555757855b10
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_logout return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset entry session=0x555757855b10, user_data=0x555757853d70, mask_prompt=00000001, p_slot=0x7fffff65dd20
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset Expected token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='', label=''
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x55575781cb50, token_present=1, pSlotList=0x7fffff65dbf0, pulCount=0x7fffff65dbe8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7fffff65dbf8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65db80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset Found token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='c727f6c35492fe76', label='BRC1K Sign Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7fffff65dbf8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65db80
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset Found token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='', label=''
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_reset return rv=0-'CKR_OK', *p_slot=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_login return rv=225-'CKR_TOKEN_NOT_RECOGNIZED'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_enumSessionCertificates return rv=225-'CKR_TOKEN_NOT_RECOGNIZED'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Cannot get token information for provider 'SoftHSM' slot 1 rv=225-'CKR_TOKEN_NOT_RECOGNIZED'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release entry session=0x555757855b10
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId entry to=0x555757851378 form=0x555757856940
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId return rv=0-'CKR_OK', *to=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_splitCertificateIdList entry cert_id_all=0x555757851370, p_cert_id_issuers_list=0x7fffff65dfb8, p_cert_id_end_list=0x7fffff65dfc0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId entry to=0x555757891548 form=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId return rv=0-'CKR_OK', *to=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_splitCertificateIdList return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList entry cert_id_list=0x555757851370
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_enumCertificateIds return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_create entry certificate_id=0x555757892970, user_data=0x555757853d70, mask_prompt=00000003, pin_cache_period=-1, p_certificate=0x7fffff65de28
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId entry to=0x5557578576d0 form=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId return rv=0-'CKR_OK', *to=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId entry token_id=0x555757892500, p_session=0x5557578576e8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Using cached session
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId return rv=0-'CKR_OK', *p_session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_create return rv=0-'CKR_OK' *p_certificate=0x5557578576d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob entry certificate=0x5557578576d0, certificate_blob=(nil), *p_certificate_blob_size=0000000000000000
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob entry certificate=0x5557578576d0, certificate_blob=0x555757893560, *p_certificate_blob_size=0000000000000347
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificate entry certificate=0x5557578576d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x555757855100
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892500
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificate return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757891c90, ptr=(nil), ad=0x555757891d20, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757893d40, ptr=(nil), ad=0x555757893dd0, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_serializeCertificateId entry sz=(nil), *max=0000000000000000, certificate_id=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=(nil), *max=0000000000000000, token_id=0x555757892da0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000049, sz='(null)'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_serializeCertificateId return rv=0-'CKR_OK', *max=000000000000004c, sz='(null)'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_serializeCertificateId entry sz=0x555757857330, *max=000000000000004c, certificate_id=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=0x555757857330, *max=000000000000004c, token_id=0x555757892da0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000049, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_serializeCertificateId return rv=0-'CKR_OK', *max=000000000000004c, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12'
gnupg-pkcs11-scd[318]: chan_0 -> S KEY-FRIEDNLY 02B54FC88B8DBAD6C91BD085364E74B03B384AED /C=BE/ST=OS/L=Paris/O=BRC1K/OU=TESTCN/CN=TESTCN on BRC1K Sign Token
gnupg-pkcs11-scd[318]: chan_0 -> S CERTINFO 101 SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12
gnupg-pkcs11-scd[318]: chan_0 -> S KEYPAIRINFO 02B54FC88B8DBAD6C91BD085364E74B03B384AED SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList entry cert_id_list=0x555757891540
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892da0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList return
gnupg-pkcs11-scd[318]: chan_0 -> OK
gnupg-pkcs11-scd[318]: chan_0 <- READKEY SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_deserializeCertificateId entry p_certificate_id=0x7fffff65dfb0, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_newCertificateId entry p_certificate_id=0x7fffff65dea8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_newCertificateId return rv=0-'CKR_OK', *p_certificate_id=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_deserializeTokenId entry p_token_id=0x555757892970, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7fffff65dde0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x555757892da0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_deserializeTokenId return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_deserializeCertificateId return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_create entry certificate_id=0x555757892970, user_data=0x555757853d70, mask_prompt=00000003, pin_cache_period=-1, p_certificate=0x7fffff65dee8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId entry to=0x5557578576d0 form=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_duplicateCertificateId return rv=0-'CKR_OK', *to=0x5557578943d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId entry token_id=0x555757894800, p_session=0x5557578576e8
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Using cached session
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getSessionByTokenId return rv=0-'CKR_OK', *p_session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_create return rv=0-'CKR_OK' *p_certificate=0x5557578576d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob entry certificate=0x5557578576d0, certificate_blob=(nil), *p_certificate_blob_size=0000000000000000
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_loadCertificate entry certificate=0x5557578576d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate session->pin_expire_time=0, time=1706631834
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_validate return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_findObjects entry session=0x555757851680, filter=0x7fffff65de60, filter_attrs=2, p_objects=0x7fffff65de20, p_objects_found=0x7fffff65de28
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_findObjects return rv=0-'CKR_OK', *p_objects_found=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getObjectAttributes entry session=0x555757851680, object=2, attrs=0x7fffff65de40, count=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_getObjectAttributes return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_isBetterCertificate entry current=(nil), current_size=0000000000000000, newone=0x555757893210, newone_size=0000000000000347
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_certificate_isBetterCertificate return is_better=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_freeObjectAttributes entry attrs=0x7fffff65de40, count=1
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_freeObjectAttributes return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_updateCertificateIdDescription entry certificate_id=0x5557578943d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757895890, ptr=(nil), ad=0x555757895920, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_updateCertificateIdDescription return displayName='/C=BE/ST=OS/L=Paris/O=BRC1K/OU=TESTCN/CN=TESTCN on BRC1K Sign Token'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_certificate_loadCertificate return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob entry certificate=0x5557578576d0, certificate_blob=0x555757893210, *p_certificate_blob_size=0000000000000347
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_getCertificateBlob return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificate entry certificate=0x5557578576d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release entry session=0x555757851680
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_session_release return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x5557578943d0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757894800
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificate return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757895770, ptr=(nil), ad=0x555757895800, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=0x555757895890, ptr=(nil), ad=0x555757895920, idx=1, argl=0, argp=0x7f6d6c697ac3
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x555757892970
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892da0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318]: chan_0 -> [ 44 20 28 31 30 3a 70 75 62 6c 69 63 2d 6b 65 79 ...(294 byte(s) skipped) ]
gnupg-pkcs11-scd[318]: chan_0 -> OK
gnupg-pkcs11-scd[318]: chan_0 <- RESTART
gnupg-pkcs11-scd[318]: chan_0 -> OK
gnupg-pkcs11-scd[318]: chan_0 <- [eof]
gnupg-pkcs11-scd[318.1816479552]: post-processing connection
gnupg-pkcs11-scd[318.1816479552]: accepting connection
gnupg-pkcs11-scd[318.1816479552]: cleanup connection
gnupg-pkcs11-scd[318.1816479552]: Terminating
gnupg-pkcs11-scd[318.1812125248]: Thread command terminate
gnupg-pkcs11-scd[318.1812125248]: Cleaning up threads
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_terminate entry
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Terminating openssl
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_openssl_terminate
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Removing providers
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_removeProvider entry reference='nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Removing provider 'nitrokey'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_notify entry
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_notify return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_removeProvider return rv=0-'CKR_OK'
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Releasing sessions
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757892090
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList entry cert_id_list=(nil)
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757855570
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList entry cert_id_list=0x5557578912b0
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x555757856940
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x555757856d70
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: pkcs11h_certificate_freeCertificateIdList return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Terminating slotevent
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_terminate entry
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: _pkcs11h_slotevent_terminate return
gnupg-pkcs11-scd[318.1816479552]: PKCS#11: Marking as uninitialized
gnupg-pkcs11-scd[307]: chan_0 <- SERIALNO --demand=D27600012401115031319909A5ED1111
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_enumTokenIds entry method=1, p_token_id_list=0x7ffe3a0463c0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x556268669b50, token_present=1, pSlotList=0x7ffe3a046290, pulCount=0x7ffe3a046288
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x5562686ddf38
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7ffe3a046230
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x5562686a34b8
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7ffe3a046230
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_enumTokenIds return rv=0-'CKR_OK', *p_token_id_list=0x7ffe3a0463c0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=(nil), *max=0000000000000000, token_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000023, sz='(null)'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_serializeTokenId entry sz=0x5562686e25e0, *max=0000000000000023, token_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_serializeTokenId return rv=0-'CKR_OK', *max=0000000000000023, sz='SoftHSM\x20project/SoftHSM\x20v2//'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenIdList entry token_id_list=0x5562686a34b0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenIdList return
gnupg-pkcs11-scd[307]: chan_0 -> S SERIALNO D27600012401115031319909A5ED1111 0
gnupg-pkcs11-scd[307]: chan_0 -> OK
gnupg-pkcs11-scd[307]: chan_0 <- SETDATA 3051300D0609608648016503040203050004405E22DF05EB9DE13F8F6D04ABAE370BC14E08B20CA220EEA191FA512E5F7A577B7B3BB7E60878C6F489FC3702219EDE952B5F09455934D4997139F49D4AA135A0
gnupg-pkcs11-scd[307]: chan_0 -> OK
gnupg-pkcs11-scd[307]: chan_0 <- PKSIGN --hash=sha512 SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_deserializeCertificateId entry p_certificate_id=0x7ffe3a046778, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token/12'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_certificate_newCertificateId entry p_certificate_id=0x7ffe3a046658
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_certificate_newCertificateId return rv=0-'CKR_OK', *p_certificate_id=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_deserializeTokenId entry p_token_id=0x5562686e1630, sz='SoftHSM\x20project/SoftHSM\x20v2/c727f6c35492fe76/BRC1K\x20Sign\x20Token'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7ffe3a046590
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_deserializeTokenId return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_deserializeCertificateId return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_create entry certificate_id=0x5562686e1630, user_data=0x5562686a0d70, mask_prompt=00000003, pin_cache_period=-1, p_certificate=0x7ffe3a046770
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_duplicateCertificateId entry to=0x5562686a46d0 form=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_duplicateCertificateId return rv=0-'CKR_OK', *to=0x5562686dfca0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSessionByTokenId entry token_id=0x5562686e2930, p_session=0x5562686a46e8
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: Using cached session
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSessionByTokenId return rv=0-'CKR_OK', *p_session=0x55626869e680
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_create return rv=0-'CKR_OK' *p_certificate=0x5562686a46d0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_signAny_ex entry certificate=0x5562686a46d0, mech_type=1, source=0x5562686a3160, source_size=0000000000000053, target=(nil), *p_target_size=0000000000000000
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: Getting key attributes
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: __pkcs11h_certificate_getKeyAttributes entry certificate=0x5562686a46d0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_freeObjectAttributes entry attrs=0x7ffe3a0465f0, count=6
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_freeObjectAttributes return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: Get private key attributes failed: 130:'CKR_OBJECT_HANDLE_INVALID'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_certificate_resetSession entry certificate=0x5562686a46d0, public_only=0, session_mutex_locked=1
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getObjectById entry session=0x55626869e680, class=3, id=0x5562686e2580, id_size=0000000000000001, p_handle=0x5562686a46f0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate entry session=0x55626869e680
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate session->pin_expire_time=0, time=1706631869
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_findObjects entry session=0x55626869e680, filter=0x7ffe3a046540, filter_attrs=2, p_objects=0x7ffe3a046538, p_objects_found=0x7ffe3a046530
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_findObjects return rv=0-'CKR_OK', *p_objects_found=0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getObjectById return rv=512-'CKR_FUNCTION_REJECTED', *p_handle=ffffffffffffffff
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_login entry session=0x55626869e680, is_publicOnly=0, readonly=1, user_data=0x5562686a0d70, mask_prompt=00000003
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_logout entry session=0x55626869e680
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_logout return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_reset entry session=0x55626869e680, user_data=0x5562686a0d70, mask_prompt=00000003, p_slot=0x7ffe3a046550
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_reset Expected token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='c727f6c35492fe76', label='BRC1K Sign Token'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSlotList entry provider=0x556268669b50, token_present=1, pSlotList=0x7ffe3a046420, pulCount=0x7ffe3a046418
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getSlotList return rv=0-'CKR_OK' *pulCount=2
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId entry p_token_id=0x7ffe3a046428
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId entry p_token_id=0x7ffe3a0463b0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_newTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686e2da0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_token_getTokenId return rv=0-'CKR_OK', *p_token_id=0x5562686e2da0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_reset Found token manufacturerID='SoftHSM project' model='SoftHSM v2', serialNumber='c727f6c35492fe76', label='BRC1K Sign Token'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5562686e2da0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_reset return rv=0-'CKR_OK', *p_slot=1418919542
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_login_context entry session=0x55626869e680, user=1, label='(null)', user_data=0x5562686a0d70, mask_prompt=00000003
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: Calling pin_prompt hook for '`fhbU'
gnupg-pkcs11-scd[307]: chan_0 -> INQUIRE NEEDPIN PIN required for token 'BRC1K Sign Token' (try 0)
gnupg-pkcs11-scd[307]: chan_0 <- [ 44 20 32 32 32 32 32 32 32 32 00 00 00 00 00 00 ...(76 byte(s) skipped) ]
gnupg-pkcs11-scd[307]: chan_0 <- END
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: key_prompt/pin_prompt hook return rv=0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_login_context C_Login rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_login_context return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_login return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getObjectById entry session=0x55626869e680, class=3, id=0x5562686e2580, id_size=0000000000000001, p_handle=0x5562686a46f0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate entry session=0x55626869e680
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate session->pin_expire_time=0, time=1706631873
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_validate return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_findObjects entry session=0x55626869e680, filter=0x7ffe3a046540, filter_attrs=2, p_objects=0x7ffe3a046538, p_objects_found=0x7ffe3a046530
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_findObjects return rv=0-'CKR_OK', *p_objects_found=0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_getObjectById return rv=512-'CKR_FUNCTION_REJECTED', *p_handle=ffffffffffffffff
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_certificate_resetSession return rv=512-'CKR_FUNCTION_REJECTED'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: __pkcs11h_certificate_getKeyAttributes return rv=512-'CKR_FUNCTION_REJECTED'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_signAny return rv=512-'CKR_FUNCTION_REJECTED', *p_target_size=0000000000000061
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificate entry certificate=0x5562686a46d0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_release entry session=0x55626869e680
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: _pkcs11h_session_release return rv=0-'CKR_OK'
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x5562686dfca0
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5562686e2930
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificate return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificateId entry certificate_id=0x5562686e1630
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId entry certificate_id=0x5562686df830
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_token_freeTokenId return
gnupg-pkcs11-scd[307.2253408064]: PKCS#11: pkcs11h_certificate_freeCertificateId return
gnupg-pkcs11-scd[307]: chan_0 -> ERR 108 Card error <Unspecified source>
gnupg-pkcs11-scd[307]: chan_0 <- RESTART
gnupg-pkcs11-scd[307]: chan_0 -> OK
One mention regarding both setups:
This happens when I'm using RELOADAGENT LEARN
gpg-agent --server gpg-connect-agent << EOF
RELOADAGENT
LEARN
EOF
but it is worse when using RELOADAGENT SCD LEARN
gpg-agent --server gpg-connect-agent << EOF
RELOADAGENT
SCD LEARN
EOF
I get:
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
Key generation failed: No such file or directory
from gnupg-pkcs11-scd.
the issue was related to wrong ID/LABEL when importing the x509 cert
from gnupg-pkcs11-scd.
Related Issues (20)
- Utimaco problem: Bad session key HOT 8
- Documentation Isuse for Yubikey with OpenSC HOT 5
- Yubikey - Multiple PIV Certs encryption/signing issue HOT 8
- Problem in loading keys to the gpg HOT 8
- 9.3 release segfaults on PKAUTH command
- 9.3 release always requires PIN for signing operation HOT 7
- gpg2 --card-status fails to list any key HOT 4
- why importing same key from same token in different machine lead to different keyids HOT 1
- Instructions on compiling for Windows HOT 3
- Cannot sign, asks PIN-code, but no success HOT 9
- Support for PKCS#11 Modules without Certificates HOT 14
- gpg --expert --full-generate-key fails to recognize card HOT 1
- Command GETATTR APPTYPE and $DISPSERIALNO is not implemented HOT 13
- Can this interface support Yubikey 5? HOT 11
- gpg --sign not triggering pin entry using a key with 'always authenticate' HOT 10
- ERR 41 Wrong public key algorithm <Unspecified source> HOT 6
- gpg --card-status shows different results when used with scdaemon and gnupg-pkcs11-scd HOT 1
- Provide Support for libassuan v3.x
- Fedora/RHEL pkcs11-helper RPMs break gnupg-pkcs11-scd integration with gnupg
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnupg-pkcs11-scd.