PeculiarVentures/fortify

CKR_FUNCTION_FAILED on MD840

pstam opened this issue · 2 comments

pstam commented

Hello,
I am getting CKR_FUNCTION_FAILED when creating a new Certificate Request using the Fortify Tools on a SafeNet MD840.

Log file:
{"action":"provider/action/getCrypto","level":"info","message":"Run action","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.413Z"}
{"action":"crypto/subtle/generateKey","level":"info","message":"Run action","provider":"636f4c35dacdba7f3871da212a1291fd424516a40b8a83b85b30a66a489d49ff","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.431Z"}
{"algorithm":{"hash":"SHA-256","name":"RSASSA-PKCS1-v1_5","sensitive":false,"token":false},"crypto":"MD840","extractable":false,"kyUsages":["sign","verify"],"level":"info","message":"generateKey","source":"server-api","timestamp":"2022-11-24T10:32:32.432Z"}
{"action":"crypto/subtle/exportKey","level":"info","message":"Run action","provider":"636f4c35dacdba7f3871da212a1291fd424516a40b8a83b85b30a66a489d49ff","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.532Z"}
{"crypto":"MD840","format":"spki","key":{"algorithm":{"hash":"SHA-256","label":"RSA","name":"RSASSA-PKCS1-v1_5","sensitive":false,"token":false},"extractable":true,"id":"16f350b4fea132f27d914674a6e8f945","type":"public","usages":["verify"]},"level":"info","message":"exportKey","source":"server-api","timestamp":"2022-11-24T10:32:32.533Z"}
{"action":"crypto/subtle/sign","level":"info","message":"Run action","provider":"636f4c35dacdba7f3871da212a1291fd424516a40b8a83b85b30a66a489d49ff","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.547Z"}
{"algorithm":{"hash":"SHA-256","name":"RSASSA-PKCS1-v1_5"},"crypto":"MD840","key":{"algorithm":{"hash":"SHA-256","label":"RSA","name":"RSASSA-PKCS1-v1_5","sensitive":false,"token":false},"extractable":false,"id":"16f350b4fea132f27d914674a6e8f945","type":"private","usages":["sign"]},"level":"info","message":"sign","source":"server-api","timestamp":"2022-11-24T10:32:32.548Z"}
{"action":"crypto/certificateStorage/import","level":"info","message":"Run action","provider":"636f4c35dacdba7f3871da212a1291fd424516a40b8a83b85b30a66a489d49ff","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.561Z"}
{"algorithm":{"hash":"SHA-256","name":"RSASSA-PKCS1-v1_5"},"crypto":"MD840","format":"raw","keyUsages":["sign","verify"],"level":"info","message":"certStorage/importCert","source":"server-api","timestamp":"2022-11-24T10:32:32.562Z"}
{"action":"crypto/keyStorage/setItem","level":"info","message":"Run action","provider":"636f4c35dacdba7f3871da212a1291fd424516a40b8a83b85b30a66a489d49ff","session":"60f760f8eb1440dc3ab2e3dcb8b2a6c2298341d863be17acb4ba389eaa84aed4","source":"server","timestamp":"2022-11-24T10:32:32.580Z"}
{"crypto":"MD840","key":{"algorithm":{"hash":"SHA-256","label":"RSA","name":"RSASSA-PKCS1-v1_5","sensitive":false,"token":false},"extractable":false,"id":"16f350b4fea132f27d914674a6e8f945","type":"private","usages":["sign"]},"level":"info","message":"keyStorage/setItem","source":"server-api","timestamp":"2022-11-24T10:32:32.581Z"}
{"error":"CKR_FUNCTION_FAILED","level":"error","message":"Server event error","source":"server","timestamp":"2022-11-24T10:32:32.615Z"}

pstam commented

I changed the driver of MD840 from the "FB52636E98F44EBE837DB93C46721463" to "39b3d7a3662c4b48bb120d008dd18648"
and working.

card.json has been updated. Please restart your Fortify application to get the latest version of card.json. The latest version is v1.1.10.