DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: forget66
今日帖子: 67
在线用户: 15
导航: 论坛 -> Web应用开发 斑竹:bodies  
作者:
男 net_zhjk2022 (netzhjk) ▲△△△△ -
普通会员
2022/9/23 10:23:32
标题:
REST request failed: Error getting Server Certificate 浏览:765
加入我的收藏
楼主: 今天在用 RESTRequest 控件发送JSON请求到服务端时,报:REST request failed: Error getting Server Certificate 错误,我把程序复制到win10下就正常,在win7下就报上术错误,用的delphi10.2版本。请路过的大佬帮帮看看,怎么解决呢?
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/9/23 22:35:02
1楼: maybe needs update your TLS/SSL library
https://support.microsoft.com/en-au/topic/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-winhttp-in-windows-c4bd73d2-31d7-761e-0178-11268bb10392

https://support.microsoft.com/zh-cn/topic/%E6%9B%B4%E6%96%B0%E4%BA%86-%E4%BB%A5%E5%9C%A8-windows-%E4%B8%AD%E7%9A%84-winhttp-%E4%B8%AD%E5%90%AF%E7%94%A8-tls-1-1-%E5%92%8C-tls-1-2-%E4%BD%9C%E4%B8%BA%E9%BB%98%E8%AE%A4%E5%AE%89%E5%85%A8%E5%8D%8F%E8%AE%AE-c4bd73d2-31d7-761e-0178-11268bb10392


DataSnap...

StackOverFlow post:
----------
1

Appears to be a bug with the TDSCertfiles component in the Server project.

Having set the following properties programmatically, the bug seems to ignore what I have put in code and looks for what is set manually in the object inspector (empty):
**********
-Cerfile
-Keyfile
-RootCertfile
**********

FIX - After setting the above properties and before calling DSHTTPService.Start add the following:

--> DSCertFiles.SetServerProperties(DSHTTPService.HttpServer).

Retesting the connection/Generating server methods from my client app, I no longer get the error message and it successfully connects.
----------
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行62.5毫秒 RSS