简体   繁体   中英

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

and I want to send The following data From A to B Securely .

(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. 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.
  4. You can POST the data to the next page over HTTPS instead of using GET and putting the data in the quesry string.

ps If you do use the query string, you can make the next request over HTTPS, and that way it would be secure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM