S
S
Sergey Nikolaev2015-09-26 14:01:02
PHP
Sergey Nikolaev, 2015-09-26 14:01:02

How to send secure/encrypted POST request between two servers?

One server (PHP) sends a request to another (NodeJS).
It is necessary:
​​1. Encrypt data
2. Pass the authorization key so that no one else can access the server.
Tell me how and with what you can encrypt / decrypt correctly (what would work in both NodeJS and PHP).
Where can you read?
Would ssh public/private key encryption work? How to implement such a thing?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-09-26
@Devastor

you can always use your certificate to organize an encrypted connection. This is in both PHP and Node.js. Google - TLS in the context of what you are using.
A good example is the organization of work with APNS (Apple push notifications) servers. You can see how the client is implemented for it, they are both for the node and for the puff.
But since we are talking about POST requests, it all comes down to good old HTTPS with its own certificates.

V
Vladimir Martyanov, 2015-09-26
@vilgeforce

Why don't you like https for this task?

S
Schoolboy., 2015-09-26
@viphorizon

StartSSL.com issues free ssl certificates

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question