2

I am trying to sync with my exchange server using HTTP Methods(HttpPost) with the client certificate (abc.pfx) which is generated by the server. I tried using KeyStore, KeyManagerFactory,TrustManagerFactory and SSLSocketFactory to acheive this. But iam getting

  1. Authentication Error (If i trust all certificates) Received authentication challenge is null

  2. java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. (If i trust only the server (Root CA) cert).

I had gone through many Links in StackOverflow 1,2,3,4. If u can see all the links are atmost same. I tried different ways but still no use.

Note: I am using abc.pfx (it is not self signed), server.cer (to make this trust). Iam converting both file into BKS format and using in my code. Plz help me to solve this problem

Community
  • 1
  • 1
Sudarshan
  • 1,291
  • 3
  • 26
  • 35

0 Answers0