Skip to content

Verify public-private tls key pair#1108

Merged
jfallows merged 5 commits intoaklivity:developfrom
attilakreiner:tls-verify
Jun 28, 2024
Merged

Verify public-private tls key pair#1108
jfallows merged 5 commits intoaklivity:developfrom
attilakreiner:tls-verify

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
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