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

Windows cert chain now acts like rest of crt #459

Closed
wants to merge 4 commits into from
Closed

Conversation

sbSteveK
Copy link
Contributor

Changed windows_pki_utils.c to process certificate chains in the same order as all other platforms.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -603,7 +603,7 @@ int aws_import_key_pair_to_cert_context(
aws_raise_error(AWS_ERROR_SYS_CALL_FAILURE);
}

if (i != cert_count - 1 || !add_result) {
if (i != 0 || !add_result) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's build a new unit test that stresses using a certificate-chain

Copy link
Contributor

Choose a reason for hiding this comment

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

we could probably just use a cert chain for the testing-resources unit test certs.

Copy link
Contributor

@JonathanHenson JonathanHenson left a comment

Choose a reason for hiding this comment

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

Could you generate a new certificate chain for unit tests? To make the change work seamlessly you can simply replace the files that are there with some that use a chain.

This reverts commit e45f8d1, reversing
changes made to 4786a32.
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.

None yet

3 participants