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

Add SHA256 hashed cert X5C tests #105

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Add SHA256 hashed cert X5C tests #105

merged 4 commits into from
Oct 27, 2023

Conversation

ptoffy
Copy link
Member

@ptoffy ptoffy commented Oct 24, 2023

Since #99 requires X5C chain certificates to be hashed with something different than SHA1 (and the default X5CTests use SHA1) this adds tests which use SHA256 hashed certificates. It also includes the scripts and commands used to generate those certificates, for anyone who might need them later on

Tests/JWTKitTests/SHA256X5CTests.swift Outdated Show resolved Hide resolved
Tests/JWTKitTests/SHA256X5CTests.swift Outdated Show resolved Hide resolved
scripts/create-certs.sh Show resolved Hide resolved
scripts/create-certs.sh Outdated Show resolved Hide resolved
scripts/create-jwt.py Outdated Show resolved Hide resolved
@gwynne gwynne added enhancement New feature or request no-release-needed Doesn't require a release labels Oct 27, 2023
@ptoffy ptoffy requested a review from gwynne October 27, 2023 20:12
scripts/create-jwt.sh Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

There really wasn't anything wrong with the Python approach, by the way... 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Either one is fine with me!

scripts/create-certs.sh Show resolved Hide resolved
Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
@ptoffy ptoffy merged commit 362dc6e into main Oct 27, 2023
13 checks passed
@ptoffy ptoffy deleted the x5c-tests branch October 27, 2023 22:33
@ptoffy ptoffy mentioned this pull request Nov 23, 2023
Merged
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-release-needed Doesn't require a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants