GoogleCloudPlatform / kms-integrations

https://cloud.google.com/kms
Apache License 2.0
39 stars 13 forks source link

GCP HSM SSL Key not working for the web servers for ubuntu OS. #38

Open Shamri04 opened 2 months ago

Shamri04 commented 2 months ago

we have renewed the SSL Key on Sep 15th 10.00 PM. After that the new key is working fine for 2 days without any issues. Yesterday suddenly our web servers stopped working due to an ssl key serving issue from HSM. We have tried pointing the HSM key in testing web server. We got the below errors

image image

Kindly help ASAP , our business is impacted.

tdbhacks commented 2 months ago

Some initial thoughts:

I guess as a starting point, a couple questions:

We'll also try to reproduce on our end

Shamri04 commented 2 months ago

Hi tdbhacks , Thanks for addressing ,

Please find the response

The current version of PKCS 11 library I am using is libkmsp11-1.0-linux-amd64 and i have tried using libkmsp11-1.6-linux-amd64 as well but no help , the Nginx offloding is not wotking getting below errors, I tried pointing as object also but nothing helps. root@xxxxx:/ssl# nginx -t Failed to enumerate slots PKCS11_get_private_key returned NULL 2024/09/19 20:56:46 [emerg] 2069#2069: cannot load certificate key "engine:pkcs11:pkcs11:id=projects/xxxx-internal/locations/us-central1/keyRings/xxxx-hsm/cryptoKeys/xxx-hsm/cryptoKeyVersions/13": ENGINE_load_private_key() failed (SSL: error:40000067:pkcs11 engine::invalid parameter error:13000080:engine routines::failed loading private key) nginx: configuration file /etc/nginx/nginx.conf test failed

Current openssl version is OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

iontzialla commented 2 months ago

Thank you for providing this information. We tried to reproduce the error on our end but, unfortunately, we were unsuccessful so far. To further investigate the issue, can you please provide:

  1. The pkcs11-spy log. See https://github.com/GoogleCloudPlatform/kms-integrations/blob/master/kmsp11/docs/pkcs11_spy_setup.md for how to retrieve it.
  2. The yaml config file for PKCS11.
  3. A description of the keys and key versions that are configured in the key ring e.g. is the key that you are trying to use an imported key version? how many key versions are in the key? what are the states of these key versions (i.e. enabled/disabled etc)?
Shamri04 commented 2 months ago

Hi Iontzialla,

  1. Please find the pkcs logs, * OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 18:55:28.034 [compat] [in] pInterfaceName 0000561b2f271722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 18:55:28.034 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 18:55:31.908 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 18:55:31.908 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 18:55:31.908 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_OpenSession 2024-09-19 18:55:31.908 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0xbda63998c4f533b Returned: 0 CKR_OK

6: C_FindObjectsInit 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] pTemplate[0]: Returned: 0 CKR_OK

7: C_FindObjects 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x325382c46dc72eab matches Returned: 0 CKR_OK

8: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

9: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_EC_POINT 0000561b3035ac50 / 65 [out] pTemplate[1]: CKA_EC_POINT 0000561b3035ac50 / 65 00000000 04 28 A6 C4 C5 18 9C FB 21 72 61 8C 0B E5 B8 CB .(......!ra..... 00000010 F3 13 0B 0C FB EB 11 34 0F 47 64 4A 0B 45 94 BF .......4.GdJ.E.. 00000020 4B 3B 13 BA B8 BB D1 52 FC E6 BD 67 64 E5 AF 4D K;.....R...gd..M 00000030 8F 7B 9B 1E B6 DE B3 29 37 A0 78 01 0A 42 AE E4 .{.....)7.x..B.. 00000040 88 .
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_EC_PARAMS 0000561b3037b950 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 0000561b3037b950 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

16: C_GetAttributeValue 2024-09-19 18:55:31.908 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_LABEL 0000561b30384550 / 8 [out] pTemplate[1]: CKA_LABEL 0000561b30384550 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

17: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_ID 0000561b3025d0b0 / 103 [out] pTemplate[1]: CKA_ID 0000561b3025d0b0 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 33 ions/13
Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_ENCRYPT 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_ENCRYPT False Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_VERIFY 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_VERIFY True Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_WRAP 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_WRAP False Returned: 0 CKR_OK

22: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_DERIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

23: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x325382c46dc72eab [in] pTemplate[1]: CKA_LOCAL 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

24: C_FindObjects 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x77c34028de5e4083 matches Returned: 0 CKR_OK

25: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

26: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

27: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

28: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

29: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_LABEL 0000561b30233080 / 8 [out] pTemplate[1]: CKA_LABEL 0000561b30233080 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

30: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

31: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ID 0000561b3025e2c0 / 103 [out] pTemplate[1]: CKA_ID 0000561b3025e2c0 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 33 ions/13
Returned: 0 CKR_OK

32: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_DECRYPT 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_DECRYPT False Returned: 0 CKR_OK

33: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_SIGN 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_SIGN True Returned: 0 CKR_OK

34: CGetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA? (0xcf534301) 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_? (0xcf534301) 00007ffd15716788 / -1 Returned: 18 CKR_ATTRIBUTE_TYPE_INVALID

35: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_UNWRAP 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_UNWRAP False Returned: 0 CKR_OK

36: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_DERIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

37: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

38: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_SENSITIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_SENSITIVE True Returned: 0 CKR_OK

39: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ALWAYS_SENSITIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_ALWAYS_SENSITIVE False Returned: 0 CKR_OK

40: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_EXTRACTABLE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_EXTRACTABLE False Returned: 0 CKR_OK

41: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_NEVER_EXTRACTABLE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_NEVER_EXTRACTABLE False Returned: 0 CKR_OK

42: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_LOCAL 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

43: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 8 Returned: 0 CKR_OK

44: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x77c34028de5e4083 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000561b303689d0 / 8 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000561b303689d0 / 8 00000000 41 10 00 00 00 00 00 00 A.......
Returned: 0 CKR_OK

45: C_FindObjects 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0xd36c9006a38e934 matches Returned: 0 CKR_OK

46: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

47: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

48: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

49: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

50: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_EC_POINT 0000561b3034e950 / 65 [out] pTemplate[1]: CKA_EC_POINT 0000561b3034e950 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

51: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

52: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_EC_PARAMS 0000561b30233080 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 0000561b30233080 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

53: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

54: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_LABEL 0000561b3022a370 / 8 [out] pTemplate[1]: CKA_LABEL 0000561b3022a370 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

55: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

56: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_ID 0000561b30387980 / 103 [out] pTemplate[1]: CKA_ID 0000561b30387980 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

57: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_ENCRYPT 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_ENCRYPT False Returned: 0 CKR_OK

58: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_VERIFY 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_VERIFY True Returned: 0 CKR_OK

59: C_GetAttributeValue 2024-09-19 18:55:31.909 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_WRAP 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_WRAP False Returned: 0 CKR_OK

60: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_DERIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

61: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0xd36c9006a38e934 [in] pTemplate[1]: CKA_LOCAL 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

62: C_FindObjects 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x8c614bcbf3309ed1 matches Returned: 0 CKR_OK

63: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

64: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

65: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_CLASS 00007ffd15716718 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

66: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

67: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_LABEL 0000561b30233080 / 8 [out] pTemplate[1]: CKA_LABEL 0000561b30233080 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

68: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

69: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ID 0000561b30368150 / 103 [out] pTemplate[1]: CKA_ID 0000561b30368150 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

70: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_DECRYPT 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_DECRYPT False Returned: 0 CKR_OK

71: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_SIGN 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_SIGN True Returned: 0 CKR_OK

72: CGetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA? (0xcf534301) 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_? (0xcf534301) 00007ffd15716788 / -1 Returned: 18 CKR_ATTRIBUTE_TYPE_INVALID

73: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_UNWRAP 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_UNWRAP False Returned: 0 CKR_OK

74: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_DERIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

75: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 00007ffd1571671f / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

76: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_SENSITIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_SENSITIVE True Returned: 0 CKR_OK

77: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ALWAYS_SENSITIVE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_ALWAYS_SENSITIVE False Returned: 0 CKR_OK

78: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_EXTRACTABLE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_EXTRACTABLE False Returned: 0 CKR_OK

79: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_NEVER_EXTRACTABLE 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_NEVER_EXTRACTABLE False Returned: 0 CKR_OK

80: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_LOCAL 00007ffd15716788 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

81: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 8 Returned: 0 CKR_OK

82: C_GetAttributeValue 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] hObject = 0x8c614bcbf3309ed1 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000561b30226080 / 8 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000561b30226080 / 8 00000000 41 10 00 00 00 00 00 00 A.......
Returned: 0 CKR_OK

83: C_FindObjects 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

84: C_FindObjectsFinal 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b Returned: 0 CKR_OK

85: C_CloseSession 2024-09-19 18:55:31.910 [in] hSession = 0xbda63998c4f533b Returned: 0 CKR_OK

86: C_Finalize 2024-09-19 18:55:31.910 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 20:18:23.539 [compat] [in] pInterfaceName 000055d431933722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 20:18:23.548 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 20:18:28.037 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 20:18:28.037 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 20:18:28.037 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 20:19:14.822 [compat] [in] pInterfaceName 00005568af89f722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 20:19:14.822 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 20:19:18.219 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 20:19:18.219 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 20:19:18.219 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_OpenSession 2024-09-19 20:19:18.219 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0x16104906fa0905e4 Returned: 0 CKR_OK

6: C_FindObjectsInit 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] pTemplate[0]: Returned: 0 CKR_OK

7: C_FindObjects 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x393a366c37d1d0a2 matches Returned: 0 CKR_OK

8: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_CLASS 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

9: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_CLASS 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_EC_POINT 00005568b022d770 / 65 [out] pTemplate[1]: CKA_EC_POINT 00005568b022d770 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 20:19:18.219 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_EC_PARAMS 00005568b0249370 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 00005568b0249370 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

16: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_LABEL 00005568b023fb70 / 8 [out] pTemplate[1]: CKA_LABEL 00005568b023fb70 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

17: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_ID 00005568b0367510 / 103 [out] pTemplate[1]: CKA_ID 00005568b0367510 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_ENCRYPT 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_ENCRYPT False Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_VERIFY 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_VERIFY True Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_WRAP 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_WRAP False Returned: 0 CKR_OK

22: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_DERIVE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

23: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x393a366c37d1d0a2 [in] pTemplate[1]: CKA_LOCAL 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

24: C_FindObjects 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x18fc632b6746b05 matches Returned: 0 CKR_OK

25: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_CLASS 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

26: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

27: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_CLASS 00007ffff1908508 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

28: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

29: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_LABEL 00005568b0252080 / 8 [out] pTemplate[1]: CKA_LABEL 00005568b0252080 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

30: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

31: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ID 00005568b0250320 / 103 [out] pTemplate[1]: CKA_ID 00005568b0250320 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

32: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_DECRYPT 00007ffff190850f / 1 [out] pTemplate[1]: CKA_DECRYPT False Returned: 0 CKR_OK

33: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_SIGN 00007ffff190850f / 1 [out] pTemplate[1]: CKA_SIGN True Returned: 0 CKR_OK

34: CGetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA? (0xcf534301) 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_? (0xcf534301) 00007ffff1908578 / -1 Returned: 18 CKR_ATTRIBUTE_TYPE_INVALID

35: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_UNWRAP 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_UNWRAP False Returned: 0 CKR_OK

36: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_DERIVE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

37: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 00007ffff190850f / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

38: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_SENSITIVE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_SENSITIVE True Returned: 0 CKR_OK

39: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ALWAYS_SENSITIVE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_ALWAYS_SENSITIVE False Returned: 0 CKR_OK

40: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_EXTRACTABLE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_EXTRACTABLE False Returned: 0 CKR_OK

41: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_NEVER_EXTRACTABLE 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_NEVER_EXTRACTABLE False Returned: 0 CKR_OK

42: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_LOCAL 00007ffff1908578 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

43: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 8 Returned: 0 CKR_OK

44: C_GetAttributeValue 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] hObject = 0x18fc632b6746b05 [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 00005568b039b180 / 8 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 00005568b039b180 / 8 00000000 41 10 00 00 00 00 00 00 A.......
Returned: 0 CKR_OK

45: C_FindObjects 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

46: C_FindObjectsFinal 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 Returned: 0 CKR_OK

47: C_CloseSession 2024-09-19 20:19:18.220 [in] hSession = 0x16104906fa0905e4 Returned: 0 CKR_OK

48: C_Finalize 2024-09-19 20:19:18.220 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 21:21:29.943 [compat] [in] pInterfaceName 000055a76d2f2722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:21:29.943 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 21:21:33.307 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:21:33.307 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 21:21:33.307 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_GetTokenInfo 2024-09-19 21:21:33.307 [in] slotID = 0x0 [out] pInfo: label: ' ' manufacturerID: 'Google ' model: 'Cloud KMS Token ' serialNumber: '0000000000000000' ulMaxSessionCount: 0 ulSessionCount: -1 ulMaxRwSessionCount: 0 ulRwSessionCount: -1 ulMaxPinLen: 0 ulMinPinLen: 0 ulTotalPublicMemory: -1 ulFreePublicMemory: -1 ulTotalPrivateMemory: -1 ulFreePrivateMemory: -1 hardwareVersion: 0.0 firmwareVersion: 0.0 time: '0000000000000000' flags: 400408 CKF_USER_PIN_INITIALIZED
CKF_TOKEN_INITIALIZED
CKF_SO_PIN_LOCKED
Returned: 0 CKR_OK

6: C_Finalize 2024-09-19 21:21:33.307 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 21:21:54.547 [compat] [in] pInterfaceName 000055c7a0998722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:21:54.547 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 21:21:58.003 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:21:58.003 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 21:21:58.003 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_OpenSession 2024-09-19 21:21:58.003 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0x3150e4281889d7f0 Returned: 0 CKR_OK

6: C_FindObjectsInit 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] pTemplate[0]: Returned: 0 CKR_OK

7: C_FindObjects 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x3abe2361afb13339 matches Returned: 0 CKR_OK

8: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_CLASS 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

9: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_KEY_TYPE 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_CLASS 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_EC_POINT 000055c7a2986770 / 65 [out] pTemplate[1]: CKA_EC_POINT 000055c7a2986770 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_EC_PARAMS 000055c7a29a2370 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 000055c7a29a2370 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

16: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_LABEL 000055c7a2998b70 / 8 [out] pTemplate[1]: CKA_LABEL 000055c7a2998b70 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

17: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_ID 000055c7a2ac21b0 / 103 [out] pTemplate[1]: CKA_ID 000055c7a2ac21b0 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_ENCRYPT 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_ENCRYPT False Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_VERIFY 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_VERIFY True Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_WRAP 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_WRAP False Returned: 0 CKR_OK

22: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_DERIVE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

23: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0x3abe2361afb13339 [in] pTemplate[1]: CKA_LOCAL 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

24: C_FindObjects 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0xc34a2b2f5914b44d matches Returned: 0 CKR_OK

25: C_GetAttributeValue 2024-09-19 21:21:58.003 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_CLASS 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

26: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_KEY_TYPE 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

27: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_CLASS 00007fffcb2f9de8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

28: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

29: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_LABEL 000055c7a29ab080 / 8 [out] pTemplate[1]: CKA_LABEL 000055c7a29ab080 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

30: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

31: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ID 000055c7a29a9320 / 103 [out] pTemplate[1]: CKA_ID 000055c7a29a9320 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

32: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_DECRYPT 00007fffcb2f9def / 1 [out] pTemplate[1]: CKA_DECRYPT False Returned: 0 CKR_OK

33: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_SIGN 00007fffcb2f9def / 1 [out] pTemplate[1]: CKA_SIGN True Returned: 0 CKR_OK

34: CGetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA? (0xcf534301) 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_? (0xcf534301) 00007fffcb2f9e58 / -1 Returned: 18 CKR_ATTRIBUTE_TYPE_INVALID

35: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_UNWRAP 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_UNWRAP False Returned: 0 CKR_OK

36: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_DERIVE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

37: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 00007fffcb2f9def / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

38: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_SENSITIVE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_SENSITIVE True Returned: 0 CKR_OK

39: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ALWAYS_SENSITIVE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_ALWAYS_SENSITIVE False Returned: 0 CKR_OK

40: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_EXTRACTABLE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_EXTRACTABLE False Returned: 0 CKR_OK

41: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_NEVER_EXTRACTABLE 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_NEVER_EXTRACTABLE False Returned: 0 CKR_OK

42: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_LOCAL 00007fffcb2f9e58 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

43: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 8 Returned: 0 CKR_OK

44: C_GetAttributeValue 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] hObject = 0xc34a2b2f5914b44d [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 000055c7a2afd950 / 8 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 000055c7a2afd950 / 8 00000000 41 10 00 00 00 00 00 00 A.......
Returned: 0 CKR_OK

45: C_FindObjects 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

46: C_FindObjectsFinal 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 Returned: 0 CKR_OK

47: C_CloseSession 2024-09-19 21:21:58.004 [in] hSession = 0x3150e4281889d7f0 Returned: 0 CKR_OK

48: C_Finalize 2024-09-19 21:21:58.004 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 21:52:52.077 [compat] [in] pInterfaceName 000055994d53a722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:52:52.077 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 21:52:55.773 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:52:55.773 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 21:52:55.773 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_OpenSession 2024-09-19 21:52:55.774 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0xba708bc39bd636ef Returned: 0 CKR_OK

6: C_FindObjectsInit 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] pTemplate[0]: Returned: 0 CKR_OK

7: C_FindObjects 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x2864224b3b5c4f1f matches Returned: 0 CKR_OK

8: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_CLASS 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

9: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_CLASS 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PUBLIC_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_EC_POINT 000055994ec2f770 / 65 [out] pTemplate[1]: CKA_EC_POINT 000055994ec2f770 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_EC_PARAMS 000055994ec4b370 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 000055994ec4b370 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

16: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_LABEL 000055994ec41b70 / 8 [out] pTemplate[1]: CKA_LABEL 000055994ec41b70 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

17: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_ID 000055994ed7f5d0 / 103 [out] pTemplate[1]: CKA_ID 000055994ed7f5d0 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_ENCRYPT 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_ENCRYPT False Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_VERIFY 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_VERIFY True Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_WRAP 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_WRAP False Returned: 0 CKR_OK

22: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_DERIVE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

23: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x2864224b3b5c4f1f [in] pTemplate[1]: CKA_LOCAL 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

24: C_FindObjects 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x6c84c952d9fde87e matches Returned: 0 CKR_OK

25: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_CLASS 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

26: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_KEY_TYPE 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

27: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_CLASS 00007ffd975617b8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

28: C_GetAttributeValue 2024-09-19 21:52:55.774 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

29: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_LABEL 000055994ec54080 / 8 [out] pTemplate[1]: CKA_LABEL 000055994ec54080 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

30: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ID 0000000000000000 / 0 [out] pTemplate[1]: CKA_ID 0000000000000000 / 103 Returned: 0 CKR_OK

31: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ID 000055994ec52320 / 103 [out] pTemplate[1]: CKA_ID 000055994ec52320 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

32: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_DECRYPT 00007ffd975617bf / 1 [out] pTemplate[1]: CKA_DECRYPT False Returned: 0 CKR_OK

33: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_SIGN 00007ffd975617bf / 1 [out] pTemplate[1]: CKA_SIGN True Returned: 0 CKR_OK

34: CGetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA? (0xcf534301) 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_? (0xcf534301) 00007ffd97561828 / -1 Returned: 18 CKR_ATTRIBUTE_TYPE_INVALID

35: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_UNWRAP 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_UNWRAP False Returned: 0 CKR_OK

36: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_DERIVE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_DERIVE False Returned: 0 CKR_OK

37: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 00007ffd975617bf / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

38: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_SENSITIVE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_SENSITIVE True Returned: 0 CKR_OK

39: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ALWAYS_SENSITIVE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_ALWAYS_SENSITIVE False Returned: 0 CKR_OK

40: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_EXTRACTABLE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_EXTRACTABLE False Returned: 0 CKR_OK

41: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_NEVER_EXTRACTABLE 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_NEVER_EXTRACTABLE False Returned: 0 CKR_OK

42: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_LOCAL 00007ffd97561828 / 1 [out] pTemplate[1]: CKA_LOCAL False Returned: 0 CKR_OK

43: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 0000000000000000 / 8 Returned: 0 CKR_OK

44: C_GetAttributeValue 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] hObject = 0x6c84c952d9fde87e [in] pTemplate[1]: CKA_ALLOWED_MECHANISMS 000055994ed73ab0 / 8 [out] pTemplate[1]: CKA_ALLOWED_MECHANISMS 000055994ed73ab0 / 8 00000000 41 10 00 00 00 00 00 00 A.......
Returned: 0 CKR_OK

45: C_FindObjects 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

46: C_FindObjectsFinal 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef Returned: 0 CKR_OK

47: C_CloseSession 2024-09-19 21:52:55.775 [in] hSession = 0xba708bc39bd636ef Returned: 0 CKR_OK

48: C_Finalize 2024-09-19 21:52:55.775 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetInterface 2024-09-19 21:52:59.688 [compat] [in] pInterfaceName 000055a00b0e6722 / 7 00000000 50 4B 43 53 20 31 31 PKCS 11
[in] pVersion = NULL [in] flags = Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:52:59.688 [in] pInitArgs = (nil) Returned: 0 CKR_OK

2: C_GetSlotList 2024-09-19 21:53:04.134 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:53:04.134 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotInfo 2024-09-19 21:53:04.134 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

5: C_GetTokenInfo 2024-09-19 21:53:04.134 [in] slotID = 0x0 [out] pInfo: label: ' ' manufacturerID: 'Google ' model: 'Cloud KMS Token ' serialNumber: '0000000000000000' ulMaxSessionCount: 0 ulSessionCount: -1 ulMaxRwSessionCount: 0 ulRwSessionCount: -1 ulMaxPinLen: 0 ulMinPinLen: 0 ulTotalPublicMemory: -1 ulFreePublicMemory: -1 ulTotalPrivateMemory: -1 ulFreePrivateMemory: -1 hardwareVersion: 0.0 firmwareVersion: 0.0 time: '0000000000000000' flags: 400408 CKF_USER_PIN_INITIALIZED
CKF_TOKEN_INITIALIZED
CKF_SO_PIN_LOCKED
Returned: 0 CKR_OK

6: C_Finalize 2024-09-19 21:53:04.134 Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetFunctionList 2024-09-19 21:55:27.615 Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:55:27.615 [in] pInitArgs = 0x7ffca99d5820 flags: 2 CKF_OS_LOCKING_OK Returned: 0 CKR_OK

2: C_GetInfo 2024-09-19 21:55:31.041 [out] pInfo: cryptokiVersion: 2.40 manufacturerID: 'Google ' flags: 0 libraryDescription: 'Cryptoki Library for Cloud KMS ' libraryVersion: 1.0 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:55:31.041 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotList 2024-09-19 21:55:31.041 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

5: C_GetSlotInfo 2024-09-19 21:55:31.041 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

6: C_GetTokenInfo 2024-09-19 21:55:31.041 [in] slotID = 0x0 [out] pInfo: label: ' ' manufacturerID: 'Google ' model: 'Cloud KMS Token ' serialNumber: '0000000000000000' ulMaxSessionCount: 0 ulSessionCount: -1 ulMaxRwSessionCount: 0 ulRwSessionCount: -1 ulMaxPinLen: 0 ulMinPinLen: 0 ulTotalPublicMemory: -1 ulFreePublicMemory: -1 ulTotalPrivateMemory: -1 ulFreePrivateMemory: -1 hardwareVersion: 0.0 firmwareVersion: 0.0 time: '0000000000000000' flags: 400408 CKF_USER_PIN_INITIALIZED
CKF_TOKEN_INITIALIZED
CKF_SO_PIN_LOCKED
Returned: 0 CKR_OK

7: C_OpenSession 2024-09-19 21:55:31.041 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0x7a15613300a0b68e Returned: 0 CKR_OK

8: C_FindObjectsInit 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

9: C_FindObjects 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x99be496ada91353d matches Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_CLASS 00007ffca99d54a8 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_KEY_TYPE 00007ffca99d54a0 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_ID 000055db3d001329 / 255 [out] pTemplate[1]: CKA_ID 000055db3d001329 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_LABEL 000055db3ce94720 / 8 [out] pTemplate[1]: CKA_LABEL 000055db3ce94720 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 000055db3d001328 / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

16: C_FindObjects 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

17: C_FindObjectsFinal 2024-09-19 21:55:31.041 [in] hSession = 0x7a15613300a0b68e Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 21:55:31.042 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 21:55:31.042 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_EC_PARAMS 000055db3cffec00 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 000055db3cffec00 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 21:55:31.042 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 21:55:31.042 [in] hSession = 0x7a15613300a0b68e [in] hObject = 0x99be496ada91353d [in] pTemplate[1]: CKA_EC_POINT 000055db3d009cc0 / 65 [out] pTemplate[1]: CKA_EC_POINT 000055db3d009cc0 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetFunctionList 2024-09-19 21:55:33.487 Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 21:55:33.487 [in] pInitArgs = 0x7ffc8d404de0 flags: 2 CKF_OS_LOCKING_OK Returned: 0 CKR_OK

2: C_GetInfo 2024-09-19 21:55:37.848 [out] pInfo: cryptokiVersion: 2.40 manufacturerID: 'Google ' flags: 0 libraryDescription: 'Cryptoki Library for Cloud KMS ' libraryVersion: 1.0 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 21:55:37.848 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotList 2024-09-19 21:55:37.848 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

5: C_GetSlotInfo 2024-09-19 21:55:37.848 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

6: C_GetTokenInfo 2024-09-19 21:55:37.848 [in] slotID = 0x0 [out] pInfo: label: ' ' manufacturerID: 'Google ' model: 'Cloud KMS Token ' serialNumber: '0000000000000000' ulMaxSessionCount: 0 ulSessionCount: -1 ulMaxRwSessionCount: 0 ulRwSessionCount: -1 ulMaxPinLen: 0 ulMinPinLen: 0 ulTotalPublicMemory: -1 ulFreePublicMemory: -1 ulTotalPrivateMemory: -1 ulFreePrivateMemory: -1 hardwareVersion: 0.0 firmwareVersion: 0.0 time: '0000000000000000' flags: 400408 CKF_USER_PIN_INITIALIZED
CKF_TOKEN_INITIALIZED
CKF_SO_PIN_LOCKED
Returned: 0 CKR_OK

7: C_OpenSession 2024-09-19 21:55:37.848 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0x5acf40b14fb3e8f9 Returned: 0 CKR_OK

8: C_FindObjectsInit 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

9: C_FindObjects 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0xdc396e71a9e7c72b matches Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_CLASS 00007ffc8d404a68 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_KEY_TYPE 00007ffc8d404a60 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_ID 000055c561ee8119 / 255 [out] pTemplate[1]: CKA_ID 000055c561ee8119 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_LABEL 000055c561d68720 / 8 [out] pTemplate[1]: CKA_LABEL 000055c561d68720 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 000055c561ee8118 / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

16: C_FindObjects 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

17: C_FindObjectsFinal 2024-09-19 21:55:37.848 [in] hSession = 0x5acf40b14fb3e8f9 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 21:55:37.849 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 21:55:37.849 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_EC_PARAMS 000055c561edf680 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 000055c561edf680 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 21:55:37.849 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 21:55:37.849 [in] hSession = 0x5acf40b14fb3e8f9 [in] hObject = 0xdc396e71a9e7c72b [in] pTemplate[1]: CKA_EC_POINT 000055c561ed5650 / 65 [out] pTemplate[1]: CKA_EC_POINT 000055c561ed5650 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

* OpenSC PKCS#11 spy *** Loaded: "/home/vvdnadmin/libkmsp11-1.0-linux-amd64/libkmsp11.so"

0: C_GetFunctionList 2024-09-19 22:05:25.121 Returned: 0 CKR_OK

1: C_Initialize 2024-09-19 22:05:25.121 [in] pInitArgs = 0x7ffdd8ce0bb0 flags: 2 CKF_OS_LOCKING_OK Returned: 0 CKR_OK

2: C_GetInfo 2024-09-19 22:05:28.507 [out] pInfo: cryptokiVersion: 2.40 manufacturerID: 'Google ' flags: 0 libraryDescription: 'Cryptoki Library for Cloud KMS ' libraryVersion: 1.0 Returned: 0 CKR_OK

3: C_GetSlotList 2024-09-19 22:05:28.508 [in] tokenPresent = 0x0 [out] pSlotList: Count is 1 [out] *pulCount = 0x1 Returned: 0 CKR_OK

4: C_GetSlotList 2024-09-19 22:05:28.508 [in] tokenPresent = 0x0 [out] pSlotList: Slot 0 [out] *pulCount = 0x1 Returned: 0 CKR_OK

5: C_GetSlotInfo 2024-09-19 22:05:28.508 [in] slotID = 0x0 [out] pInfo: slotDescription: 'A virtual slot mapped to a key r' 'ing in Google Cloud KMS ' manufacturerID: 'Google ' hardwareVersion: 0.0 firmwareVersion: 0.0 flags: 1 CKF_TOKEN_PRESENT
Returned: 0 CKR_OK

6: C_GetTokenInfo 2024-09-19 22:05:28.508 [in] slotID = 0x0 [out] pInfo: label: ' ' manufacturerID: 'Google ' model: 'Cloud KMS Token ' serialNumber: '0000000000000000' ulMaxSessionCount: 0 ulSessionCount: -1 ulMaxRwSessionCount: 0 ulRwSessionCount: -1 ulMaxPinLen: 0 ulMinPinLen: 0 ulTotalPublicMemory: -1 ulFreePublicMemory: -1 ulTotalPrivateMemory: -1 ulFreePrivateMemory: -1 hardwareVersion: 0.0 firmwareVersion: 0.0 time: '0000000000000000' flags: 400408 CKF_USER_PIN_INITIALIZED
CKF_TOKEN_INITIALIZED
CKF_SO_PIN_LOCKED
Returned: 0 CKR_OK

7: C_OpenSession 2024-09-19 22:05:28.508 [in] slotID = 0x0 [in] flags = 0x4 [in] pApplication = (nil) [in] Notify = (nil) [out] *phSession = 0xcd26c896ae823741 Returned: 0 CKR_OK

8: C_FindObjectsInit 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

9: C_FindObjects 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x1 Object 0x27b5b746d8eb31f2 matches Returned: 0 CKR_OK

10: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_CLASS 00007ffdd8ce0838 / 8 [out] pTemplate[1]: CKA_CLASS CKO_PRIVATE_KEY
Returned: 0 CKR_OK

11: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_KEY_TYPE 00007ffdd8ce0830 / 8 [out] pTemplate[1]: CKA_KEY_TYPE CKK_EC
Returned: 0 CKR_OK

12: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_ID 0000562e37d17f69 / 255 [out] pTemplate[1]: CKA_ID 0000562e37d17f69 / 103 00000000 70 72 6F 6A 65 63 74 73 2F 76 76 64 6E 2D 69 6E projects/vvdn-in 00000010 74 65 72 6E 61 6C 2F 6C 6F 63 61 74 69 6F 6E 73 ternal/locations 00000020 2F 75 73 2D 63 65 6E 74 72 61 6C 31 2F 6B 65 79 /us-central1/key 00000030 52 69 6E 67 73 2F 76 76 64 6E 2D 68 73 6D 2F 63 Rings/vvdn-hsm/c 00000040 72 79 70 74 6F 4B 65 79 73 2F 76 76 64 6E 2D 68 ryptoKeys/vvdn-h 00000050 73 6D 2F 63 72 79 70 74 6F 4B 65 79 56 65 72 73 sm/cryptoKeyVers 00000060 69 6F 6E 73 2F 31 34 ions/14
Returned: 0 CKR_OK

13: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_LABEL 0000000000000000 / 0 [out] pTemplate[1]: CKA_LABEL 0000000000000000 / 8 Returned: 0 CKR_OK

14: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_LABEL 0000562e37d10a60 / 8 [out] pTemplate[1]: CKA_LABEL 0000562e37d10a60 / 8 7676646E 2D68736D v v d n - h s m Returned: 0 CKR_OK

15: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE 0000562e37d17f68 / 1 [out] pTemplate[1]: CKA_ALWAYS_AUTHENTICATE False Returned: 0 CKR_OK

16: C_FindObjects 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] ulMaxObjectCount = 0x1 [out] ulObjectCount = 0x0 Returned: 0 CKR_OK

17: C_FindObjectsFinal 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 Returned: 0 CKR_OK

18: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_PARAMS 0000000000000000 / 10 Returned: 0 CKR_OK

19: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_EC_PARAMS 0000562e37d16860 / 10 [out] pTemplate[1]: CKA_EC_PARAMS 0000562e37d16860 / 10 00000000 06 08 2A 86 48 CE 3D 03 01 07 ..*.H.=...
Returned: 0 CKR_OK

20: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 0 [out] pTemplate[1]: CKA_EC_POINT 0000000000000000 / 65 Returned: 0 CKR_OK

21: C_GetAttributeValue 2024-09-19 22:05:28.508 [in] hSession = 0xcd26c896ae823741 [in] hObject = 0x27b5b746d8eb31f2 [in] pTemplate[1]: CKA_EC_POINT 0000562e37bd29a0 / 65 [out] pTemplate[1]: CKA_EC_POINT 0000562e37bd29a0 / 65 00000000 04 61 FD A8 EF BA D3 86 9C AB A9 3C 8E D6 3C 3B .a.........<..<; 00000010 4A 15 50 05 94 F6 E4 1F 98 FE 1A BB 46 36 8C A4 J.P.........F6.. 00000020 3A 0E 7F 25 D9 DD 75 4F B8 B9 05 C6 7A 76 07 E5 :.%..uO....zv.. 00000030 72 B1 A5 E3 E7 DE 9B 04 80 EA CE E2 F1 B3 2C 9F r.............,. 00000040 53 S
Returned: 0 CKR_OK

  1. PKCS yaml file

tokens:

  1. Yes it is an import key version and total there are 14 keys including destoyed , disabled and enabled. The latest key is only in enabled state.
tdbhacks commented 2 months ago

Hmm, it's a bit surprising that the pkcs11-spy logs don't include any C_SignInit or C_Sign calls.. the yaml config on the other hand seems pretty standard.

Given the mix of key versions with multiple states, have you tried using pkcs11:id instead of pkcs11:object in your openssl invocation? The id field maps to CKA_ID, which in our library is the full resource name of the CryptoKeyVersion. See this example. If I recall correctly, the library loads the latest version when using pkcs11:object, but it would be good to test in case that's not happening

NOTE: this will sadly only work if the resource name is less than 100 characters (#35)