Skip to content

Add pkcs12 support on cache server#201

Merged
dmercuriali merged 5 commits intodiennea:masterfrom
dmercuriali:support-pkcs12
Mar 18, 2025
Merged

Add pkcs12 support on cache server#201
dmercuriali merged 5 commits intodiennea:masterfrom
dmercuriali:support-pkcs12

Conversation

@dmercuriali
Copy link
Contributor

@dmercuriali dmercuriali commented Mar 13, 2025

This PR fixes #200 by adding support for certificates in PKCS12 format on the cache-server. No new configuration properties were added, the p12 file must be configured using the existing server.ssl.certificatefile and server.ssl.certificatefilepassword props.

I also fixed the cache-client so it can now be configured to check that the server certificate is in the truststore. Previously we accepted any cert, to allow the default server config (self-signed cert) to work.
By default we keep accepting everything, but it's possible to validate the server cert by

  • setting sslInsecure=false when creating the GenericNettyBrokerLocator, or

  • passing blazingcache.locator.client.sslinsecure=false in the javax.cache.spi.CachingProvider#getCacheManager URI

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

@dmercuriali dmercuriali self-assigned this Mar 13, 2025
@dmercuriali dmercuriali merged commit c1e3bb3 into diennea:master Mar 18, 2025
2 of 3 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.

Add support for PKCS#12 server certs

2 participants