Coder Social home page Coder Social logo

Comments (14)

mschorsch avatar mschorsch commented on June 19, 2024 1

The only documentation I have found is in the MicroProfile Rest Client documentation.

Should probably be configured as follows (#22293 (comment) and https://quarkus.io/blog/quarkus-mutual-tls/#configure-microprofile-rest-client-for-mutual-tls):

# truststore config
org.acme.client.mtls.GreetingService/mp-rest/trustStore=classpath:/META-INF/resources/client.truststore.p12
org.acme.client.mtls.GreetingService/mp-rest/trustStoreType=PKCS12 # or JKS
org.acme.client.mtls.GreetingService/mp-rest/trustStorePassword=password

# keystore config
org.acme.client.mtls.GreetingService/mp-rest/keyStore=classpath:/META-INF/resources/client.keystore.p12
org.acme.client.mtls.GreetingService/mp-rest/keyStoreType=PKCS12 # or JKS
org.acme.client.mtls.GreetingService/mp-rest/keyStorePassword=password

from quarkus.

mschorsch avatar mschorsch commented on June 19, 2024 1

As an alternative you could use the vert.x web client: https://quarkus.io/guides/vertx#using-vert-x-clients

WebClientOptions options = new WebClientOptions()
    .setSsl(true)
    .setPemKeyCertOptions(new PemKeyCertOptions()
        .addCertPath("path/to/cert.pem")
        .setKeyPath("path/to/key.pem"))
    .setTrustOptions(new PemTrustOptions()
        .addCertPath("path/to/cert.pem"));

WebClient client = WebClient.create(vertx, options);

from quarkus.

cescoffier avatar cescoffier commented on June 19, 2024 1

Let's wait until the new mechanism is in place before adding anything, or I will have to change it in a few weeks.

from quarkus.

quarkus-bot avatar quarkus-bot commented on June 19, 2024

/cc @cescoffier (rest-client), @geoand (rest-client), @radcortez (config)

from quarkus.

cescoffier avatar cescoffier commented on June 19, 2024

The configuration is likely going to change (the current one will still be working) following the TLS config centralization work.

from quarkus.

leaqui avatar leaqui commented on June 19, 2024

Hi @cescoffier

But where is the current doc?

from quarkus.

mschorsch avatar mschorsch commented on June 19, 2024

@leaqui https://quarkus.io/guides/security-authentication-mechanisms#mutual-tls

from quarkus.

leaqui avatar leaqui commented on June 19, 2024

but this is for client-side?

from quarkus.

mschorsch avatar mschorsch commented on June 19, 2024

You are right, my fault.

from quarkus.

leaqui avatar leaqui commented on June 19, 2024

Also, properties are listed at: https://es.quarkus.io/guides/all-config#quarkus-rest-client-config_quarkus-rest-client-config-rest-clients-config

But I think lost MTLS configuration doc (or a link to) at REST client guide is useful.

from quarkus.

geoand avatar geoand commented on June 19, 2024

Do you remember anything from the docs contents so we can look through the git history?

from quarkus.

leaqui avatar leaqui commented on June 19, 2024

I'm sure it was at https://quarkus.io/guides/rest-client but I can't find it at history.

I think the section title was something like Mutual - TLS

The section had a configuration block with properties like:
quarkus.rest-client.config-key.trust-store
quarkus.rest-client.config-key.trust-store-password

quarkus.rest-client.config-key.key-store
quarkus.rest-client.config-key.key-store-password

Similar to https://es.quarkus.io/guides/security-openid-connect-client-reference#mutual-tls

from quarkus.

geoand avatar geoand commented on June 19, 2024

I had no luck in locating it unfortunately

from quarkus.

leaqui avatar leaqui commented on June 19, 2024

No matter, I think adding something like https://es.quarkus.io/guides/security-openid-connect-client-reference#mutual-tls would be fine.

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.