quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.52k stars 2.61k forks source link

The reactive REST client does not support P12, PEM and CRT/KEY files #38811

Open cescoffier opened 6 months ago

cescoffier commented 6 months ago

Description

The reactive rest client only supports the JKS format at the moment. While this format is popular in the Java world, it's not popular (at all) anywhere else. CRT/KEY, PEM (the same as CRT/KEY), and P12 (PFX) are more popular.

Implementation ideas

The underlying HTTP client has support for these other formats, so this enhancement is about:

Note that his work will enable the proper support of certificate reloading (it can be implemented with JKS, but most use case are about the other formats)

quarkus-bot[bot] commented 6 months ago

/cc @geoand (rest-client)

winks commented 4 months ago

Just stumbled over this and seeing https://github.com/geoand/quarkus/commit/74149535a893cae3f8f50c5842fc5ccefae34437#diff-d374086457a41b4c533e9ff072d61977ce886022ded6173e358b6441b5f9c410R264 (I assume it's not merged and still being worked on) I just want to add that the quarkus reactive mailer seems to use "PKCS" as the truststore.type value and not PKCS12.

As I have no clue about quarkus internal consistency policies I'm just leaving this as a heads up here.

geoand commented 4 months ago

@cescoffier is working on a massive revamp of this

cescoffier commented 4 months ago

Yes, and the mailer is one of the components that will benefit from this large refactoring/ centralization.