简体   繁体   English

如何以安全的方式在不同服务器上的两个Web应用程序之间发送数据?

[英]How to send data in secure way between two web applications on different servers?

Say I have web application A on server1 & web application B on server2 假设我web application A on server1web application A on server1 web application B on server2 web application A on server1web application A on server1 web application B on server2

and I want to send The following data From A to B Securely . 我想安全地从A to B发送以下数据。

(Employee number , salary key ) (员工编号,工资密钥)

I can't use sessions here because they are two different applications , and i don't want to send that data in the query string even if i encrypt them . 我不能在这里使用会话,因为它们是两个不同的应用程序,我不想在查询字符串中发送该数据,即使我加密它们。

It depends on how you want to use the data. 这取决于您希望如何使用数据。 There are several options. 有几种选择。

  1. You can use WCF to send the data over a secure (HTTPS) connection. 您可以使用WCF通过安全(HTTPS)连接发送数据。 You can even secure the service with a client-side certificate, if you like. 如果您愿意,甚至可以使用客户端证书来保护服务。
  2. You can pass the data via a database. 您可以通过数据库传递数据。 Where one app writes the data to the database and the other application reads the data from the database. 其中一个应用程序将数据写入数据库,另一个应用程序从数据库中读取数据。
  3. You can use a queue like MSMQ, which is expensive or RabbitMQ , which is open-source and free. 您可以使用像MSMQ这样的队列,这是昂贵的或RabbitMQ ,它是开源的,免费的。
  4. You can POST the data to the next page over HTTPS instead of using GET and putting the data in the quesry string. 您可以POST数据到下一个页面在HTTPS而不是使用GET和把数据在quesry字符串。

ps If you do use the query string, you can make the next request over HTTPS, and that way it would be secure. ps如果您确实使用了查询字符串,则可以通过HTTPS发出下一个请求,这样就可以保证安全。

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

相关问题 在.NET Windows窗体中,如何在两个EXE或应用程序之间发送数据? - In .NET Windows Forms, how can I send data between two EXEs or applications? 两个不同应用程序之间的通信 - Communication between two different applications 在Web应用程序之间传递数据 - Passing data between web applications 在两个Web服务器之间共享文件文件夹 - Shares files folder between two web servers 在两个应用程序间共享数据 - Sharing data between two applications 不同网络中两个应用程序之间的命令 - Commands between two applications in different networks 在SQL Server之间传输数据的最佳方法 - Best way to transfer data between SQL Servers 需要在来自不同服务器Postgresql数据库的两个表之间同步数据 - Need to sync data between two tables from different servers Postgresql databases 如何创建客户端 web 服务,该服务将带有安全令牌的数据发送到另一个 soap web 服务 - How to create a client web service that send data with secure token to another soap web service in C#? 在具有不同connectionStrings的两台不同服务器上部署同一Web应用程序? - Deploying same web application on two different servers with different connectionStrings?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM