簡體   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