如何通过IBM Worklight实现HTTPS适配器? [英] How to implement HTTPS Adapter by IBM Worklight?
问题描述
我正在构建一个向服务器发送HTTPS请求的Worklight适配器。
I'm building an Worklight adapter that send HTTPS request to server.
使用像Firefox这样的网络浏览器,我可以通过添加异常来发送请求,但我不知道如何在Worklight适配器中执行此操作。
With a web browser like Firefox, I can send request by adding exception but I don't know how to do it in Worklight adapter.
问题:实施它的步骤是什么?
Question: what are steps to implement it?
感谢您的帮助。
推荐答案
将http更改为https非常简单,您需要更新适配器XML文件中的协议和端口元素。
Changing http to https is simple, you need to update protocol and port elements in adapter's XML file.
但是如果你正在谈论要为后端发出请求,并且需要实现这一点的自签名证书 - IBM Worklight Server和自签名证书
But if you're talking about making a request to backend protected by a self-signed certificate you need to implement this - IBM Worklight Server and self-signed certificates
这篇关于如何通过IBM Worklight实现HTTPS适配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!