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

feat: support TLS CA certificates when building a NATS client #243

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

protochron
Copy link
Contributor

Feature or Problem

NATS servers support TLS, which means sometimes you need to be able to provide certificates when instantiating a client.

This specifically adds support for supplying a CA certificate to use when connecting to a NATS server. I opted not to add client certificate support for mTLS for now, but it's an easy lift if it should just be added now.

Related Issues

Release Information

Consumer Impact

Testing

Tested locally using a NATS server with a self-signed CA and cert. Everything worked fine

Unit Test(s)

Acceptance or Integration

Manual Verification

NATS servers support TLS, which means sometimes you need to be able to
provide certificates when instantiating a client.

This specifically adds support for supplying a CA certificate to use
when connecting to a NATS server. I opted not to add client certificate
support for mTLS for now, but it's an easy lift if it should just be
added now.

Signed-off-by: Dan Norris <[email protected]>
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

Nice!

@brooksmtownsend brooksmtownsend enabled auto-merge (rebase) January 30, 2024 17:28
@brooksmtownsend brooksmtownsend merged commit d07c294 into wasmCloud:main Jan 30, 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.

2 participants