需要 SSL 证书才能连接到安全 Web 服务
我刚开始使用 SSL 证书,但无法从我连接的服务提供商那里获得帮助。我在后端使用 PHP 来处理连接。
设置如下:
用户在表单中输入详细信息,ajax 将详细信息发送回我们的服务器
然后我们的服务器使用curl进行连接到第 3 方服务以 XML 格式发送数据
第 3 方服务器回复数据
我们的服务器响应浏览器
现在我遇到的问题是弄清楚谁必须进行SSL证书,他们说我需要购买并安装SSL 证书连接到他们的服务器,但我认为是接收连接的服务器需要处理 SSL?如果我带了 SSL 证书,那不是只能让我在服务器和客户端浏览器之间建立安全连接吗?
请在我失去理智之前帮助我!
谢谢 标记
I'm new to using SSL Certs and am having trouble getting help from the Service Provider I'm connecting to. I'm using PHP on the backend to handle the connection.
The setup is as follows:
User enters details into form, ajax sends the details back to Our server
Our server then connects using curl to 3rd party service sending away data in XML format
The 3rd party server replies with the data
Our server responds to the browser
Now the problem I'm having is figuring out who has to do the SSL cert, they are saying that I need to buy and install an SSL cert to connect to their server but I thought that it was the server receiving the connection that needs to handle SSL? If I brought an SSL cert wouldn't that only allow me to setup a secure connection between our server and the client's browser?
Please help before I lose my mind!
Thanks
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要传输敏感数据,则需要使用 SSL 连接来保护浏览器和服务器之间的 Ajax 连接。
编辑:抱歉,我只回答了你的第二个问题。 SSL 证书由其服务器受到保护的实体配置,因此您不会购买证书来保护对其服务器的调用(步骤 2 和 3)。但是您的 Ajax 调用完全在您的客户端浏览器和服务器之间进行,因此您需要一个来执行第 1 步和第 2 步。 4.
You need to secure the Ajax connection between the browser and your server with a SSL connection if you are transferring sensitive data.
Edit: Sorry, I only answered your second question. The SSL certificate is configured by the entity whose server is being secured, so no you would not purchase a certificate to secure the call to THEIR server (Steps 2 & 3). But your Ajax call is totally on your end between your client's browser and your server, so you'd need one for Steps 1 & 4.