Good day! There is a client and server, both written in java. They work through api get requests, the client sends a request and receives a response in json. The client has open source, public. How do you think the best way in this case is to encrypt traffic between them and is guaranteed to protect against a mitm-attack?

  • one
    ssl sockets use - Mike

1 answer 1

Use TLS and never try to invent your own protocol.