2016-08-17 6 views

答えて

3

appモジュールによって放射されるcertificate-errorイベントに登録し、イベントハンドラであなたの自己署名証明書を検証します。

6

あなたが「シェル」(コア電子初期化)ファイルに次のコードを配置する必要があります:あなたは自分のような安全でない(無効)証明書は1に署名した許可

// SSL/TSL: this is the self signed certificate support 
    app.on('certificate-error', (event, webContents, url, error, certificate, callback) => { 
     // On certificate error we disable default behaviour (stop loading the page) 
     // and we then say "it is all fine - true" to the callback 
     event.preventDefault(); 
     callback(true); 
    }); 

しかし、これ。

これはサーバーへの安全な接続方法ではありません。

詳細については、https://electron.atom.io/docs/api/app/#event-certificate-error

関連する問題