Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:33:31+00:00 2026-06-01T21:33:31+00:00

I am trying to write a simple application to understand the basics of configuring

  • 0

I am trying to write a simple application to understand the basics of configuring authentication based on client and server certificates.

I have done everything as it is explained in jave ee 5, java ee 6 tutorials
http://docs.oracle.com/javaee/6/tutorial/doc/glien.html

  1. Opened example from javaee tutorials hello basicauthorization (just simple servlet which can be accessed only after authentication) and then reconfigured it for client certificates instead of basic authorizations
  2. Configured web.xml
  3. Configured glassfish-web.xml
  4. Generated client certificate
  5. Imported client certificate so that the server would trust it.

The problem:

When I deploy my application, and follow the link, corresponding to the application, I get a message from glassfish server HTTP Status 400 – No client certificate chain in this request”.

So, it seems, that the client (browser) doesn’t send the certificate with the request

I tried adding the .cer certificate to Chrome, firefox, internet explorer and they are added (no error is displayed), but as you see that doesn’t help.

So, the question is:

How to get the access to my application through the web browser having client .cer certificate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:33:33+00:00Added an answer on June 1, 2026 at 9:33 pm

    You can debug ssl on the server-side by adding (somewhere in Glassfish) system properties:

    -Djavax.net.debug=all
    

    see this page for details.

    You can also debug from the client perspective using openssl tool:

    openssl s_client -connect host:port -debug -msg
    

    you should see something like this:

    ...
    Acceptable client certificate CA names
    /C=PL/O=company/OU=xx/CN=host/emailAddress=email@example.com
    /C=PL/O=company/OU=xx/CN=ca/emailAddress=email@example.com
    ---
    SSL handshake has read 2536 bytes and written 116 bytes
    ...
    

    your problem is probably related to bad truststore configuration on the server-side – server sends some Acceptable client certificate CA names (or no at all), but browser doesn’t have anything to offer – it doesn’t have any private key+certificate issued by acceptable ca.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a simple client/server chat application in 2 languages - Java
I'm trying to write a simple application where I have a keyboard listener in
i'm trying to write simple tcp\ip client-server. here is server code: internal class Program
I'm trying to write a simple http server as a part of an application.
I am trying to write a simple (lightweight) RESTful server in Python. I have
I am trying to write a simple application that runs on a Windows Mobile
I've been trying to write a simple Static-class State Machine for my application to
I'm trying to write simple proxy server for some purpose. In it I use
I'm trying to write a simple stock check program, and I have a Table
I am trying to write a simple application that gets updated. For this I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.