I have an HTTP REST API in PHP used by an iPhone application.
Some web services from this API are protected by authenticating the user in the credentials of the HTTP request, but I want to avoid man-in-the-middle attacks by providing fully encrypted requests.
I am not very versed in security issues, and I could not find a clear answer to my question anywhere:
Is HTTPS relevant for STATELESS REST API?
From what I understood, HTTPS does 2 things:
- encrypt session
- prove to the client that the server he is talking to is secure
So, at first glance, it does not respond to my need, which is to encrypt data between my server and the application, because the API does not use sessions. But I still have doubts.
Can anyone understand this for me?
My other solution would be to encrypt the request data using a public / private key system. Would be better?
Thank!
source
share