Home > Back-end >  Be urgent! Strives for the HTTPS interfaces use certificate authentication related solutions
Be urgent! Strives for the HTTPS interfaces use certificate authentication related solutions

Time:03-05

Want to here to seek the aid of the barons,
I have a certificate provided by the customer and a private key (XXX. The cer, XXX. Key),
The postman when making the request may request the other interface success;
But written in Java code failure,
Certificate has been imported JDK, but always error can't find a trusted certificate,
Have never done this kind of HTTPS two-way authentication of butt joint development, write a Java program is in accordance with the online sample and own understanding to rewrite,
Certificate and private key is pem coding format,
Hope to have understand the bosses can guide, or recommend some learning materials to also go! Thank you very much!
Now completely without direction

CodePudding user response:

The pem to keystore try?

CodePudding user response:

Remember the pem format as the top and the bottom is a line, Java doesn't seem to recognize, specific don't remember, it can turn a try

CodePudding user response:

Thank you, I tried it today to turn the also not line, don't know where is my wrong, think about other way tomorrow
  • Related