json - Digital Signature, does it validate that a message has been sent by a host I trust via HTTP? -
i have following setup:
a remote host generates key pair. sends me public key on secure channel. can 100% guarantee public key sent him. uses keypair sign data encoded in json format. procceeds post http request me 2 parameters:
a)the json string b)the signature generated json string.
on end, when receive data, use public key , signature provided in http post verify.
does procedure guarantee message :
1)is sent host sender claims be. 2)is not altered man in middle attack ?
does procedure guarantee message sent host sender claims be?
technically, answer no. may not matter because answer next question:
does procedure guarantee message not altered man in middle attack?
is yes.
an untrusted host send message signed trusted source. need obtain or capture message , signature.
if you're not using ssl, connection trusted server not guaranteed. long verify message being sent signed private key corresponding public key have, message unaltered , know trusted source.
so worst case untrusted host sends copy of trusted message.
this may or may not ok need. if messages time or order dependent, problem. if put server particular state, might problem.
Comments
Post a Comment