繁体   English   中英

SSL证书过期且已更改后,移动应用程序离子停止工作

[英]Mobile app ionic stopped working after expired SSL certificate and has been changed

我的应用程序是使用Ionic 1.7Cordova 6.0.0 它在由apache提供的SSL certificate Class 1 NodeJs服务器上正常运行。 证书过期后,我更改了证书(使用具有相同CA的另一个Class 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

问题是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-----

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM