freemoon
V2EX  ›  问与答

WX 小程序调用后台接口返回 err_cert_authority invalid [仅安卓机出现]

  •  
  •   freemoon · Feb 16, 2020 · 2520 views
    This topic created in 2364 days ago, the information mentioned may be changed or developed.

    详情:今天更新后台的 SSL 证书,更新之后在浏览器调用没问题,苹果机使用小程序没问题,就安卓机上使用小程序接口全部返回这个错误,目前小程序处于内测中~

    后台是 nginx 作为 Web 服务器

    以上,请各位小程序开发大佬释疑。。

    4 replies    2020-02-17 09:02:59 +08:00
    freemoon
        1
    freemoon  
    OP
       Feb 16, 2020
    证书是 letsencrypt 的免费证书,看到别人也遇到过同样问题,也是用的免费证书,所有点怀疑是证书的问题。。
    NobodyIsMe
        2
    NobodyIsMe  
       Feb 16, 2020   ❤️ 1
    这是因为 Android 的 webview 不支持自动下载 SSL 证书的中间证书,所以需要你的 SSL 证书把中间证书也整合进去
    Leigg
        3
    Leigg  
       Feb 17, 2020 via Android
    @LinJunzhu 感谢大佬🙏,请问下是整和到小程序吧,如何整合,有教程吗
    Leigg
        4
    Leigg  
       Feb 17, 2020 via Android
    @LinJunzhu 我的问题解决了谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2506 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:41 · PVG 23:41 · LAX 08:41 · JFK 11:41
    ♥ Do have faith in what you're doing.