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

Verify public-private tls key pair #1108

Merged
merged 5 commits into from
Jun 28, 2024
Merged

Conversation

attilakreiner
Copy link
Contributor

@attilakreiner attilakreiner commented Jun 27, 2024

Description

This change verifies the public-private key pair obtained from vault. Logs an event if public-private key pair is invalid or missing.

Fixes #1073


public class TlsKeyPairVerifier
{
private static final String ALGORITHM = "SHA256withRSA";
Copy link
Contributor

Choose a reason for hiding this comment

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

We discussed other key types like Elliptic Curve that would require a different algorithm, agree?


public class TlsKeyPairVerifierTest
{
private static final String PRIVATE_KEY = """
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is an RSA key. We'll need ECDSA too.

@jfallows jfallows merged commit 18a48de into aklivity:develop Jun 28, 2024
5 checks passed
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.

Verify public-private key pair obtained from vault used for TLS handshake
2 participants