Can't launch any aws-cloudhsm-pkcs11-examples because of C_Initialize error

0

Hello,

Can't launch any aws-cloudhsm-pkcs11-examples. C_Initialize() returns error code 5 (CKR_GENERAL_ERROR). What is missing?

I'm trying to integrate CloudHSM/PKCS11 library into existing C++ application. I started by studying official examples from https://github.com/aws-samples/aws-cloudhsm-pkcs11-examples.git.
However no example is successful and stuck on C_Initialize() call. It returns error code 5 (CKR_GENERAL_ERROR). Tested on AWS Ubuntu 16.04 instance. What should be done to avoid this error?

$ src/encrypt/aes_gcm --pin ...
Failed to connect socket
Failed to initialize

$ make test
0% tests passed, 16 tests failed out of 16

$ gdb src/encrypt/aes_gcm
78 rv = funcs->C_Initialize(&args);
79 if (rv != CKR_OK) {
(gdb) p rv
$4 = 5

질문됨 4년 전536회 조회
1개 답변
0
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠