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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
There are three cases possible:
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.