2

I want to make a web service ( with post,get,delete - REST ) and 2 clients for it. The first client will be on JavaScript and he will need to comunicate with the web service and the second client is a desktop application. I was searching the internet for a solution to make the communication secure but I haven't find one. Is it possible ? I can't use SSL because this is a home project.

Also, I can't use websockets.

3
  • 5
    You can use SSL, even on a home project. You can create self-signed certificates, which are probably good enough for your case. Commented Oct 22, 2011 at 14:34
  • 2
    How to create self-signed certificates Commented Oct 22, 2011 at 14:41
  • And if I want to make a personal project from this ? To host it on a shared hosting for example. Commented Oct 22, 2011 at 18:54

1 Answer 1

1

Here are some options (though I imagine you are already considering these):

  1. As deceze mentions, you can create a self-signed cert. I have done it several times. Here is a good how-to/tutorial. If you are in Windows, then the question that Farray mentioned might be helpful.

  2. Though difficult to do correctly, you can encrypt your data before transferring it, but this adds a lot to your code, especially since you need to do it at the service server AND two different clients. It will be especially difficult to do with javascript (but it CAN be done, see Kevin Vaughan's answer to this question).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.