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

x509 certificates for validation #26

Merged
merged 5 commits into from
Mar 6, 2024
Merged

x509 certificates for validation #26

merged 5 commits into from
Mar 6, 2024

Conversation

shreyav
Copy link
Contributor

@shreyav shreyav commented Mar 5, 2024

No description provided.

@shreyav shreyav requested a review from jklein24 March 5, 2024 23:44
Comment on lines +109 to +111
// encryptionPubKey.publicKey is an ASN.1/DER encoded X.509/SPKI key, the last 65
// bytes are the uncompressed public key
return publicKey.encoded.takeLast(65).toByteArray()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ooh cool :-). This starts with 04 and doesn't include the ---- END BLAH ---- tags, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

assertNotNull(parsedResponse);
assertEquals(keysOnlyResponse, parsedResponse);

PubKeyResponse certsOnlyResponse =
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also test a response that has all 4 for the backwards compat case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

discussed on slack! will handle this alongside backwards compatibility for the other data models

@shreyav shreyav merged commit 4edcb1b into release/v1.0 Mar 6, 2024
2 checks passed
@shreyav shreyav deleted the feat/certs branch March 6, 2024 22:33
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