Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/382.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 信任Xulrunner应用中https URL的自签名证书_Javascript_Ssl_Xulrunner_Self Signed - Fatal编程技术网

Javascript 信任Xulrunner应用中https URL的自签名证书

Javascript 信任Xulrunner应用中https URL的自签名证书,javascript,ssl,xulrunner,self-signed,Javascript,Ssl,Xulrunner,Self Signed,我开发了一个小的xulrunner应用程序,当我能够使用http请求时,它可以正常工作 现在我想让我的xulrunner打开我的https远程网页(这有自签名证书)。 我想知道我如何使我的申请接受这个证书,并使我的https证书的工作 如何使我的xulrunner应用程序信任我的web服务器的自签名证书(HTTPS) 您可以将cert\u override.txt文件添加到应用程序的默认配置文件中(defaults/profile/cert\u override.txt)-此文件将复制到任何新配

我开发了一个小的xulrunner应用程序,当我能够使用http请求时,它可以正常工作

现在我想让我的xulrunner打开我的https远程网页(这有自签名证书)。 我想知道我如何使我的申请接受这个证书,并使我的https证书的工作


如何使我的xulrunner应用程序信任我的web服务器的自签名证书(HTTPS)

您可以将
cert\u override.txt
文件添加到应用程序的默认配置文件中(
defaults/profile/cert\u override.txt
)-此文件将复制到任何新配置文件中,并确保即使不受信任,也会接受某些证书。在Firefox中为您的网站创建一个永久性异常是最容易的,然后您可以使用Firefox配置文件中的
cert\u override.txt
文件(这样您就不需要破译格式)。

我也会这样做

但是,请确保主机名是完全限定的域名(例如something.com,而不仅仅是myserver)

与firefox cert_override.txt文件中的something.com 443相比,myserver 443将有不同的条目。由于这个问题,即使我有myserver 443的条目,我也无法获得https://something/的豁免。我必须将它设置为cert_override.txt文件中something.com 443的正确条目


请用您的域名/子域名替换.com。

我这样做了,我无法完成此操作。是否有我可能缺少的内容。正如我所说,该文件将仅适用于新的配置文件。如果你已经有一个配置文件,它将不会有任何效果。我还尝试将此文件放到该文件夹中(我删除了我的配置文件),但我也无法使其工作。首先,它没有将其复制到新的配置文件中,但即使我手动复制,它仍然会给我同样的错误,即无法使用自签名证书。