The only reason is that I worked with browsers and not with Arduino.
I want to create a two way secure connection for asynchronous communication between my webserver and Arduino device.
Can you advise me some bestpracticies for this task?
My server will send 1 type command to some hardware. Hardware must reply that it was completed successfully or not.
So it's not a complete two way communication. A simple HTTP based protocol would suit that need, an even simpler TCP+TLS connection would do the job too. My favorite for such tasks is MQTT.
Define what a "secure connection" is in your eyes. The above description doesn't show a need for encryption on the line as there isn't any authentication.
Cheaper option with good libraries
Way too many options. The Arduino MKR 1400 GSM is quite well supported by libraries.
pylon:
So it's not a complete two way communication. A simple HTTP based protocol would suit that need, an even simpler TCP+TLS connection would do the job too. My favorite for such tasks is MQTT.
Define what a "secure connection" is in your eyes. The above description doesn't show a need for encryption on the line as there isn't any authentication.
My Arduino device will control some vending like machine, so I want to check certificates on the both sides of the connection. Moreother I think that encryption will be good choice for this task.