javascript - Samsung Smart TV 通过 SSL (HTTPS) 请求。无法从服务器获得答案

标签 javascript ssl https samsung-smart-tv smart-tv

有时我会制作智能电视应用程序。我已经完成了其中的 2 个。一个使用 HTTPS 地址,另一个仅使用 HTTP。它们都可以在电视上正常工作,但是......

我在向 HTTPS 地址发出请求时遇到了问题。技术支持说有些电视可能无法识别某些 SSL 证书。

我最近开始选择一些 SSL 证书并安装在我的 apache 服务器上。问题是 — 在一个域地址请求中工作正常,在另一个域中则不能。

有人知道这会是什么问题吗?

我的请求代码是:

    var url = 'https://smarttv.ibecsystems.kz';

$.ajax({
    'url' : url,
    'dataType' : 'html',
    'async' : false,
    'crossDomain' : true,
    'contentType' : 'application/json; charset=utf-8',      
    'success' : function(json) {
        $('#divcontent1').html('Ok!');
    },
    'error' : function() {   
        $('#divcontent1').html('error');    
    }
}); 

https://smarttv.ibecsystems.kz - 工作正常,https://api.krisha.kz - 才不是。尽管它们具有相同的 SSL 证书。

谢谢!

最佳答案

我尝试使用 chrome 浏览器访问您的页面,发现 api.krisha.kz 证书无效。当我访问该站点时,请看下面的消息

This is probably not the site you are looking for! You attempted to reach api.krisha.kz, but instead you actually reached a server identifying itself as api.kolesa.kz. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of api.krisha.kz.

当其他站点不存在证书问题时。我认为这是问题所在,请通过为 api.krisha.kz 域创建自签名证书来修复证书

关于javascript - Samsung Smart TV 通过 SSL (HTTPS) 请求。无法从服务器获得答案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19431490/

相关文章:

apache - Letsencrypt certbot 有效但续订无效

https - 不支持将 .pfx 或 .p12 文件导入远程证书存储

javascript - Angular JS 适用于 Chrome,但不适用于 IE 11

javascript - 单击特定子元素时运行动画,但对所有其他子元素不执行任何操作

security - 您如何测试 SSL 客户端库是否正确验证了它所连接的服务器的证书?

oracle - utl_http : ORA-24263: Certificate of the remote server does not match the target address

tomcat - IBM Bluemix 在 spring boot 应用程序上强制执行 https(Jhipster 生成)

javascript - 将 Angular ui Bootstrap 注入(inject) app.js,但日期选择器未显示在 View 中

javascript - 如何在java中发送响应期间压缩Rest服务中的数据(对象)

ssl - 证书用途,何时验证?