简体   繁体   English

使用jquery接受icenium中的自签名SSL证书,以便对wcf rest服务进行ajax调用?

[英]Accept Self-signed SSL certificate in icenium using jquery to make ajax calls to a wcf rest service?

I have an application in icenium that call a rest/json wcf service using jquery. 我在icenium中有一个应用程序,它使用jquery调用rest / json wcf服务。 When the calls are made using a non-encrypted connection (http) everything behaves as it should. 当使用非加密连接(http)进行呼叫时,一切都按预期运行。 However, when I use a ssl encrypted connection (https) all my ajax calls fail. 但是,当我使用ssl加密连接(https)时,我的所有ajax调用都会失败。 I figure this is related to the self-signed certificate I use to test. 我认为这与我用来测试的自签名证书有关。

I was wondering if there was any way to accept self-signed certificates. 我想知道是否有办法接受自签名证书。 I even installed the certificates on my iPad and still can't get it to work. 我甚至在我的iPad上安装了证书,仍然无法让它工作。

Any help would be greatly apreciated. 任何帮助都会大大减少。

I can't say that this will necessarily work for Icenium. 我不能说这对Icenium来说一定有用。 However, I had the same problem with jquery and a self-signed certificate in a good old-fashioned HTML page. 但是,我在一个好的老式HTML页面中遇到了与jquery和自签名证书相同的问题。 I discovered that I had to change my jquery script source to use https rather than http. 我发现我必须将我的jquery脚本源更改为使用https而不是http。 Everything then worked fine. 一切都很好。

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js"></script>

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

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