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

Provide SSLOptions to allow updates of the certificate of a TCP server or client #4568

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

vietj
Copy link
Member

@vietj vietj commented Dec 16, 2022

Provides support for reloading of a TCP server or client, a new SSLOptions class has been introducing which captures the reloadable part of the current configuration.

Reconfiguration is explicit and requires a call to a new updateSSLOptions method that loads and validates the configuration and then updates the SSL context when it succeeds.

vertx.setPeriodic(REFRESH_PERIOD, id -> {
  Optional<SSLOptions> options = refreshUpdatedConfiguration();
  if (options.isPresent()) {
    Future<Void> fut = server.updateSSLOptions(options.get());
  }
});

@vietj vietj added this to the 4.4.0 milestone Dec 16, 2022
@vietj vietj force-pushed the reload-tcp-ssl-config branch 5 times, most recently from 4d90197 to f7a8786 Compare December 17, 2022 10:28
@vietj vietj self-assigned this Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant