http - Most secure way to secure Jersey REST Services -


i'm looking advice. have system , running on amazon cloud instance bunch of rest services running on jboss. next step secure these services there credit card information flowing through them. need authentication question is, secure methods 1 can use rest services?

ssl ca certs of course encrypt data using ca i'll start of course. go daddy reputable this? or have shell out alot of money verisign?

for authentication, sufficient basic auth or maybe having caller sign request somehow? other methods?

oh forgot mention, client application ipad application. advice.

you want able protect man in middle attacks , prevent replaying of requests. time there payment related information being relayed opt signing request using nonce , timestamp. involves signing request using shared secret between client , server. secret can passed 1 time on login.

use timestamp , client generated unique nonce value part of signed bytes. these values passed headers in request server can reassemble request.

a typical request executed curl might this:

curl -v -h "content-type: application/json" -h "authorization: ff7b93ad-27d0-49f6-90bd-9937951e5fcc:ncyoa5n5s2nfsm7qyvf5hdgl4pmmpoup3zo/uyfaqkg=" -h "x-date:2013-03-28t19:34:00+00:00" -h "nonce:2d1321d32a" -x 'http://localhost/orders/123' 

the authorization header contains id identify requester , hash of signed request. date header should within offset of server time (15 mins reasonable limit).

i have full code example here


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -