【问题标题】:Mobile app ionic stopped working after expired SSL certificate and has been changed移动应用程序 ionic 在 SSL 证书过期后停止工作并已更改
【发布时间】:2016-05-26 13:45:25
【问题描述】:

我的应用是使用Ionic 1.7Cordova 6.0.0 开发的。 它在 NodeJs 服务器上正常工作,SSL certificate Class 1apache 提供服务。 证书过期后,我更改了证书(使用另一个具有相同 CA 的 1 类证书),应用程序停止工作。

HTTPS response(使用 Charles Web Proxy 调试)中的注释,说:SSL Proxying not enabled for this host: enable in Proxy Settings, SSL locations

我为 iOS 和 Android 编译的应用程序有同样的问题

域名是:https://api.tickete.it

【问题讨论】:

  • 您能否提供您在设备上收到的日志(如果有)?因为该消息听起来像是查尔斯问题
  • @Jay 你明白了吗?我们今天遇到了完全相同的问题。
  • @MrTechie 你的 CA 是什么?
  • 从昨天开始我好像遇到了类似的问题。见stackoverflow.com/questions/35429324/…
  • @MrTechie 我解决了这个问题!

标签: android ios cordova ssl ionic-framework


【解决方案1】:

问题是Apache需要SSLCertificateChainFile来解决应用程序的问题。

要创建 CA 捆绑包,您必须进行如下处理(对于 startSSL Class1):

   # wget https://www.startssl.com/certs/ca.crt
   # wget https://www.startssl.com/certs/sca.server1.crt
   # cat sca.server1.crt ca.crt > bundle.pem

现在您需要将 SSLCertificateChainFile 设置为 apache2 配置文件:

    #   Server Certificate Chain:
    #   Point SSLCertificateChainFile at a file containing the
    #   concatenation of PEM encoded CA certificates which form the
    #   certificate chain for the server certificate. Alternatively
    #   the referenced file can be the same as SSLCertificateFile
    #   when the CA certificates are directly appended to the server
    #   certificate for convinience.
        SSLCertificateChainFile /your/path/bundle.pem

bundle.em 有这样的结构:

-----BEGIN CERTIFICATE----- 
 blablabla
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
blablabla
-----END CERTIFICATE-----

【讨论】:

    猜你喜欢
    • 2021-11-26
    • 2015-11-13
    • 2015-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-08
    相关资源
    最近更新 更多