Web server to SQL server SSL

David C 191 Reputation points
2020-09-11T19:57:03.987+00:00

Basic SSL security question: If I have a public-facing web server requesting data from a SQL Server which is in a DMZ, does the SQL Server require an SSL cert or is the cert set up on the web server side of the connection, and traffic pass through port 445? Thanks.

SQL Server | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. David Browne - msft 3,851 Reputation points
    2020-09-11T21:06:04.22+00:00

    No. For TLS encryption between the web server and the SQL Server, SQL Server will have a certificate that is used. Similar to how a web server works. But the protocol is TDS not HTTPS, and the traffic goes over whatever port SQL Server is listening on, 1433 by default.

    0 comments No comments

  2. David C 191 Reputation points
    2020-09-11T21:55:15.833+00:00

    Thanks. Just a follow-up question. So the web server to SQL Server is encrypted via TLS (1.2). I thought is uses a self-signed certificate on the SQL Server, and best practice is to instead use a enterprise-level SSL cert with higher encryption strength. Is that not correct? If it is correct to install an enterprise cert on the SQL Server, how does that relate to there being a cert on the web server as well? I think I get it but just to confirm... a web server SSL cert encrypts web client to web server traffic, and TLS (and/or SSL cert) on the SQL Server encrypts web server to SQL Server connection. Am I sort of close?


  3. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2020-09-14T07:36:39.953+00:00

    Hi @David C ,

    In addition, please refer to this article which might help.
    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.