Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not generate new EC key #5663

Open
achamayou opened this issue Sep 19, 2023 · 3 comments
Open

Could not generate new EC key #5663

achamayou opened this issue Sep 19, 2023 · 3 comments
Assignees
Labels

Comments

@achamayou
Copy link
Member

Observed in https://dev.azure.com/MSRC-CCF/CCF/_build/results?buildId=75971&view=logs&j=8f3dc89c-3708-5926-47e7-27120a268dab&t=bb1a7e6d-8f5b-56e4-638c-b498b20b4b62

/__w/1/s/build/workspace/reconfiguration_reconfiguration_test_cft_12/out:207: 2023-09-19T01:48:39.252933Z 0 [fail ] ../src/enclave/main.cpp:295 | exception during enclave init: could not generate new EC key

if (EVP_PKEY_keygen(pkctx, &key) <= 0)

We should at least log the failure code, and perhaps retry if this is a temporary error (lack of entropy?). The documentation only outlines one possible error on unsupported keys, but that's probably not what's happening here: https://www.openssl.org/docs/man1.1.1/man3/EVP_PKEY_keygen.html

@achamayou
Copy link
Member Author

achamayou commented Mar 5, 2024

Observed in https://dev.azure.com/MSRC-CCF/CCF/_build/results?buildId=82271&view=logs&jobId=0e591dbf-76f3-52a9-7e9a-f17d4997e033&j=0e591dbf-76f3-52a9-7e9a-f17d4997e033&t=72b55a3a-1084-5b37-42cb-197b1672aacd

39: 04:53:15.536 | ERROR    | infra.network:log_errors:126 - /__w/1/s/build/workspace/pi_basic_mt_sgx_cft^_1/out:132: 2024-03-05T04:53:11.496939Z        0   [fail ] ../src/enclave/main.cpp:295          | exception during enclave init: could not generate new EC key: 0
39: 04:53:15.536 | ERROR    | infra.network:log_errors:126 - /__w/1/s/build/workspace/pi_basic_mt_sgx_cft^_1/out:133: 2024-03-05T04:53:11.497140Z        100 [fail ] ../src/host/main.cpp:734             | An error occurred when creating CCF node: EnclaveInitFailed

Agent name: 'ado-sgx-ccf-sub-backup 3'
Agent machine name: '1b0add8bc000000'

@achamayou
Copy link
Member Author

achamayou commented Mar 5, 2024

And

https://dev.azure.com/MSRC-CCF/CCF/_build/results?buildId=82265&view=logs&j=5435e0ac-25e5-5426-50be-61b0d0ea8d34&t=1b9ad28e-4fab-5bbb-1cce-5ef2b80aad3b

2024-03-05T03:23:28.203766Z        0   [fail ] ../src/enclave/main.cpp:295          | exception during enclave init: could not generate new EC key: 0
2024-03-05T03:23:28.203888Z        100 [fail ] ../src/host/main.cpp:734             | An error occurred when creating CCF node: EnclaveInitFailed

Agent name: 'ado-sgx-ccf-sub-backup 3'
Agent machine name: 'b368cfbac000001'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant