0

We have accomplished a data communication with a C# winforms project between a SQL Server and Remote MySQL (WEB) database (Unix platform). All the data is being updated with a custom made software.

What we want is that this communication must be encrypted (secure) when we update, insert a row or when a sql select statement is being made.

IS there a way that Visual Studio can secure this communication line?

All the data right now is open.

2 Answers 2

0

Yes, MySQL supports secure connections using SSL, and MySQL Connector/Net supports this. You need SslMode=Required; in the connection string and you need a certificate.

Lots of details on the MySQL site:

Tutorial: Using SSL with MySQL Connector/Net

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

Comments

0

It is not clear regarding endpoints. But I guess you need at least to communicate with SQL Server using SSL from VS. You can read about that here. Alternatively you can make secured network connection itself (using VPN, IPSec).

My SQL also supports TLS as well. So you need to read documentation.

UPDATE: I cannot help you with Plesk (it is different topic). But I guess SQL Server when installed should use some SSL certificate. Unfortunately I think it will be untrusted... So to use that certificate and skip certificate validation you can add this to your connection string:

 Encrypt=true;TrustServerCertificate=true;

But keep in mind that such connection can be impacted by Man-in-The-Middle attack. So it is better to setup server in right way.

6 Comments

Is there a way to arrange this with the Parallels Plesk 12? Handy for generating the SSL certifcates?
Does anyone use this kind of solutions with the Parallels Plesk 12 and the SSL with MySQL Connector/Net?
Which exactly solution do you mean?
We are using Parallels Plesk 12 for adding the MySQL databases. Is it possible to add the SSL for the MySQL Connector/Net?
I think you need create new question and ask for Plesk community and it is of course not for stackoverflow (it is of-topic here, stackoverflow is for programming-related questions). But I am sure you can ask for any environment and administration help (including Plesk) here: serverfault.com.
|

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.