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

  • SEARCH
  • Home
  • 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 7781001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:05:08+00:00 2026-06-01T19:05:08+00:00

Is it possible to connect to a site using SSL where the client only

  • 0

Is it possible to connect to a site using SSL where the client only has the root certificate, but the server has both the root and the intermediate certificates?

I am trying to connect using HttpUrlConnection with a TrustManager containing my roots, and I get the usual handshake error:

javax.net.ssl.SSLHandshakeException:
  sun.security.validator.ValidatorException:
  Certificate chaining error
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)

I know that the general solution is to install the intermediate certificates, but I would like to avoid the constant one-offing of getting vendor X’s new intermediate certificate.

I am familiar with using a TrustManager that accepts everything, but that is not an option.

  • 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-01T19:05:10+00:00Added an answer on June 1, 2026 at 7:05 pm

    When a server has a certificate signed by a sub-ca-A which is signed by a root CA (e.g. Verisign), then the server will send all the certificates as part of the server hello so that the server’s certificate can be validated.

    In your case you only have the root CA in the truststore.

    As a result it is impossible to get up the validation chain of trust since you are missing the sub-ca certificate.
    It is not only impossible, it would be wrong/insecure to be able to do that. So what you are doing is way out of proper path.

    So you only have 2 options.
    Put the server’s actual certificate in the truststore as trusted.
    Put the whole chain in the truststore i.e. the intermediate CA certificates along with the root.

    What are your concerns? Intermediate certificate expiration?

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

Sidebar

Related Questions

Is it possible to connect to Sql Server for the purpose of executing simple
Is it possible to connect to remote host with indy client and send data
Is it possible to manually connect to the database using sqlclient and sqlconnection (ie
Unable to connect to your database server using the provided settings. I've been having
I have a web site using Facebook Connect where people have a strong incentive
Is that possible to connect mysql database between servers. I mean, lets say i
Is it possible to connect Visual Studio 2010 Professional edition to TFS (project hosted
Does anyone know off a way or maybe think its possible to connect Node.js
Possible Duplicate: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25; I am
Is it possible to use the facebook connect button to submit a form? 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.