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

时间:2016-02-15 15:18:51

标签: android ios cordova ssl ionic-framework

我的应用已使用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

1 个答案:

答案 0 :(得分:0)

问题是Apache需要<xml type="MCQ"> <question text="Which is the largest Indian river?"> <feedback text="Ganga" /> <feedback text="Brahmaputra" /> <feedback text="Yamuna" /> </question> <question text="Which river rises from a glacier near Mansarover in Tibet?"> <feedback text="Brahmaputra" /> <feedback text="Ganga" /> <feedback text="Mahanadi" /> </question> <question text="Where does river Ganga ends?"> <feedback text="Bay of Bengal" /> <feedback text="Indian ocean" /> <feedback text="Arabian sea" /> </question> </xml> 来解决应用程序的问题。

要创建CA捆绑包,必须按如下方式处理(对于startSSL Class1):

SSLCertificateChainFile

现在您需要将SSLCertificateChainFile设置为 # 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 配置文件:

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