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

openssl/gen_cert: mark evidence extension as non-critical #150

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Feb 22, 2023

Mark evidence extensions as non-critical, since many TLS libraries (such as openssl or mbedtls) do not support extracting critical extensions.

See: CCC-Attestation/interoperable-ra-tls#9

Signed-off-by: Kun Lai [email protected]

// * However, there is no way via the openssl api to know directly which extension is causing
// * X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION, so we have to tolerate all this cases here.
// * This may be a security issue if there are other critical extensions that neither we nor openssl can handle.
// * See:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add '//' before '/*/'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced with #if 0 and #fi

Mark evidence extensions as non-critical, since many TLS libraries (such as openssl or mbedtls) do not support extracting critical extensions.

See: CCC-Attestation/interoperable-ra-tls#9

Signed-off-by: Kun Lai <[email protected]>
@imlk0 imlk0 force-pushed the non-critical-extension branch from 81db134 to 680f11f Compare February 27, 2023 07:10
@haosanzi haosanzi merged commit 2378719 into inclavare-containers:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants