0

In an interview, Interview asked me an question :

  • The communication between our application and the remote database must be done with https (more secure).

How could you do it? I didn't find any clue for this question in google also.

How to establish secure connection between java application and database? Please help me.

4
  • Do you want to use HTTPS or do you want to use SSL? Using HTTPS would imply that you need to expose it as a webservice. Commented Apr 25, 2010 at 17:05
  • Is it a Java application or a Javascript application? As @BalusC has said, it's kind of strange to ask for HTTPS from a Java app, especially as a basic interview question. But then you wouldn't really access the DB from Javascript either, so that is a very odd question indeed. Commented Apr 25, 2010 at 17:12
  • If it were JS, it would make much less sense. If this was the literal question, then either the interviewer is dumb or he was just trying to testify your knowledge and opinions with regard to the "normal" practices. Commented Apr 25, 2010 at 17:38
  • He specifically told me to do the database connection using HTTPS. Commented Apr 25, 2010 at 17:52

3 Answers 3

3

HTTPS? If your client is using something proprietary with a web server acting as an intermediary to talk to the db server it would (one would hope) be transparent between your application the & web server; simply change from HTTP to HTTPS, ditto if you’re using SQL Server web service end-points (which you can make use HTTPS).

If perhaps you mean SSL then SQL server supports encrypted connections between client and server, see this question.

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

Comments

0

Google for JDBC connection over SSL. See here for an example.

Comments

0

Hopefully the person who asked the question wasn't seriously thinking about exposing a database to the wider Internet. If they were, better not to accept that position.

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.