netty4-http configuration sslClientCertHeaders is not working with nettySharedHttpServer

Solution Verified - Updated -

Issue

  • I'm trying to set a property for netty4-http using the rest component: sslClientCertHeaders
        restConfiguration()
            .component("netty4-http")
                .endpointProperty("nettySharedHttpServer", "#sharedNettyHttpServer")
                .endpointProperty("needClientAuth", "true")
                .endpointProperty("sslClientCertHeaders", "true")
        ;
  • Seems that the property sslClientCertHeaders is ignored, when I log the headers the client cert headers are missing. When doing the same without rest it works:
from("netty4-http:http://localhost:8000/service/info?ssl=true&sslContextParameters=#sslContextParameters&needClientAuth=true&sslClientCertHeaders=true")
  • Do you know how to achieve the same for rest.

Environment

  • Red Hat Fuse
    • 7.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content