getYourMother
V2EX  ›  Android

安卓端请求接口证书报错问题

  •  
  •   getYourMother · Mar 8, 2021 · 12541 views
    This topic created in 1912 days ago, the information mentioned may be changed or developed.
    javax.net.ssl.SSLHandshakeException(java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.)

    好端端的突然就报这个错,很多接口用不了,但是相同地址 ios 端就可以正常访问,网上找了好多解决方案都不行,请问该如何解决?
    5 replies    2021-03-08 10:58:38 +08:00
    Jirajine
        1
    Jirajine  
       Mar 8, 2021
    是用的 le 的证书么,把证书换成 fullchain
    unco020511
        2
    unco020511  
       Mar 8, 2021
    请更换正规 CA 机构签发的证书,证书有问题
    TanMusong
        3
    TanMusong  
       Mar 8, 2021
    证书在 Android 不认?
    TanMusong
        4
    TanMusong  
       Mar 8, 2021
    getYourMother
        5
    getYourMother  
    OP
       Mar 8, 2021
    感谢各位老铁,已经解决了,是后台配置问题,他们给我说后面换了个人生成证书,之前那个人生成的都是正常的,然后我也不太清楚是哪个环节出了问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5383 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    ♥ Do have faith in what you're doing.