freemoon
V2EX  ›  问与答

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

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

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

    后台是 nginx 作为 Web 服务器

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

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