Connect to MySQL through https tunnel?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Grolle
Posts: 13
Joined: Tue 15 Apr 2008 12:02

Connect to MySQL through https tunnel?

Post by Grolle » Mon 05 May 2014 20:17

Hi,

is it possible to connect to an MySQL Server through an https tunnel? http works fine, but it is not secure enough for my needs.

Thank you and best regards ...

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Connect to MySQL through https tunnel?

Post by Dimon » Tue 06 May 2014 13:35

To support work via a secure channel, you should use the SSL or SSH protocol.
When using SSL connections, you can connect to a MySQL server (which supports SSL connection) via http tunnel. Thus, connection will be secure.
When using SSH protocol, SSH server must work on the MySQL server side, then the tunnel can be created directly via this SSH server, avoiding usage of http tunnel.

In order to create a secure connection to MySQL server via SSH/SSL you should use the TMySSHIOHandler/TMySSLIOHandler component and SecureBridge components. You can find more detailed information about it in the "Secure connections" topic of MyDAC help.

Post Reply