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 8942253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:28:19+00:00 2026-06-15T11:28:19+00:00

I am trying a simple Java code to retrieve certificate chain for remote servers.

  • 0

I am trying a simple Java code to retrieve certificate chain for remote servers. Some websites return a chain of certificates (2,3,4..) and some just 1. My question is: Is there something wrong when I get certificate chain with length 1?

  • 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-15T11:28:22+00:00Added an answer on June 15, 2026 at 11:28 am

    There are three cases possible:

    1. They deliver a self-signed certificate
    2. They deliver a certificate signed by the root certificate (rare case) which you are assumed to have as trusted
    3. They deliver a certificate signed by CA certificate which they expect you to have (quite common case, as in Windows intermediate CA certificates are stored as well, so you can build a complete chain)

    Case 1 can be easily checked by you but such certificates are not trusted by default (unless the user has trusted them).
    In cases 2 and 3 you need to rebuild a chain using local certificate storage as a helper.

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

Sidebar

Related Questions

Im trying to develop a simple java code which will upload some contents from
Scala/Android newbie question. I'm trying to rewrite this simple code from Java to Scala.
I'm trying to write a simple code in Java to connect to a memcache
I'm trying to create a simple Java app that uses JNI to call some
Hi I am trying out a simple java http server NanoHTTPD: http://elonen.iki.fi/code/nanohttpd/ Today I
i'm trying to port some Java stuff to C#. I'm just wondering if the
I am trying to make simple java code that will check if a table
I have a some simple Java code that looks similar to this in its
Making a simple Java code for Blackjack and need some advice. OK I am
I am trying to write a simple Java function that will take a list

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.