java - Undertow X.509 Being Stripped? -


my embedded undertow server isn't receiving javax.servlet.request.x509certificate on resource endpoint (rest), though have ssl enabled trust store , key store configured sslcontext.

code

// setup our server , server builder undertow         server = new undertowjaxrsserver();         serverbuilder = undertow.builder()                 .setserveroption(options.ssl_enabled, true)                 .setserveroption(options.ssl_client_auth_mode, sslclientauthmode.requested)                 .addhttpslistener(port, host, sslcontext); 

also in endpoint should recieve request x.509 cert attached

    @post     @consumes(mediatype.application_json)     @produces(mediatype.application_json)     @path("/gettestjsonclientsideauth/")     public testmodel gettestjson(@context httpservletrequest request, testmodel testmodel) throws unauthorizedcertificateexception { 

not quite sure missing. appears stripping x.509 allowing request go through. want endpoints require ssl so, set requested should compliant other configurations. .setwantsauth example spark have configured , had working before. has insight.

if need more let me know.

p.s.

output of attributes receive off request.

 request null ? : httpservletrequestimpl [ post /app-name/api/test/gettestjsonclientsideauth/ ]  request attribute names ? : org.jboss.weld.servlet.conversationcontextactivator.contextactivatedinrequest   request attribute names ? : javax.servlet.request.key_size  request attribute names ? : org.jboss.weld.context.ignore.guard.marker  request attribute names ? : org.jboss.resteasy.core.resourcemethodinvoker  request attribute names ? : resteasy_chosen_accept  request attribute names ? : javax.servlet.request.cipher_suite  request attribute names ? : org.jboss.weld.context.http.httprequestcontext#weld%managedbean%static_instance| points.rest.test.testresource|null|false  request attribute names ? : javax.servlet.request.ssl_session_id 


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -