locked
ASP .Net Web API Connection to SQL Azure RRS feed

  • Question

  • Hi,

    I am implementing  APS .Net Web API integration with SQL Azure database. Since SQL Azure only alows standard security. Per the link http://msdn.microsoft.com/en-us/library/azure/ee621781.aspx the password is in the connection string. Is this the recommended way or are there more secure ways to go about it?

    thanks
    Friday, November 21, 2014 8:21 PM

Answers

  • Hi,

    Yes, that is the recommended way.

    SQL Azure transfers data using tabular data stream (TDS) over an SSL connection. SQL Azure doesn’t support unencrypted connections, and has a signed certificate issued by a Certificate Authority. These factors all help ensure secure data transmission and can help prevent man-in-the-middle attacks

    To validate certificates with ADO.NET application code, set Encrypt=True andTrustServerCertificate=False in the database connection string.

    Reference :  http://technet.microsoft.com/en-us/magazine/hh351833.aspx

    Regards,

    Mekh.

    Saturday, November 22, 2014 4:12 AM

All replies

  • Hello!

    Thanks for reaching out here.

    We're investing into this question. Shall update this thread with our comments, at the earliest.

    Thanks again,

    Arvind

    Friday, November 21, 2014 10:39 PM
  • Hi,

    Yes, that is the recommended way.

    SQL Azure transfers data using tabular data stream (TDS) over an SSL connection. SQL Azure doesn’t support unencrypted connections, and has a signed certificate issued by a Certificate Authority. These factors all help ensure secure data transmission and can help prevent man-in-the-middle attacks

    To validate certificates with ADO.NET application code, set Encrypt=True andTrustServerCertificate=False in the database connection string.

    Reference :  http://technet.microsoft.com/en-us/magazine/hh351833.aspx

    Regards,

    Mekh.

    Saturday, November 22, 2014 4:12 AM