Trust Anchor not found for Android SSL Connection

后端 未结 17 1124
囚心锁ツ
囚心锁ツ 2020-11-22 05:06

I am trying to connect to an IIS6 box running a godaddy 256bit SSL cert, and I am getting the error :

java.security.cert.CertPathValidatorException: Trust an         


        
17条回答
  •  爱一瞬间的悲伤
    2020-11-22 05:30

    I had the same problem what i found was that the certificate .crt file i provided missing an intermediate certificate. So I asked all .crt files from my server admin, then concatinated them in reverse order.

    Ex. 1. Root.crt 2. Inter.crt 3. myCrt.crt

    in windows i executed copy Inter.crt + Root.crt newCertificate.crt

    (Here i ignored myCrt.crt)

    Then i provided newCertificate.crt file into code via inputstream. Work done.

提交回复
热议问题