Reputation: 13
I would like to know if there are any security concerns regarding the way I want to create a secure client-server connection.
NOTE: I know the most obvious answer to these type of questions is to just use SSL/TLS, but I would appreciate an answer to my specific case.
My connection protocol is as follows (following communication is un-encrypted plain text):
All further communication is encrypted with AES and verified with HMAC.
Upvotes: 1
Views: 263
Reputation: 9795
A man in the middle could easily send their own public key to the client and receive the original public key from the server.
It could then eavesdrop the conversation in both directions.
Upvotes: 1