Page 1 of 1

Tunnel trough https

Posted: Fri 01 Apr 2016 11:58
by pedja2
Hi,
is it possible to use tunnel.php which reside on the https site? I am getting errorr "cannot establish HTTP connection". On http site is working ok. I also tried as protocol mpSSLHttp but without success.

Thanks

Re: Tunnel trough https

Posted: Thu 07 Apr 2016 13:10
by ViktorV
Currently, MyDAC supports tunneling via HTTP protocol only. We will consider the possibility to implement support for HTTPS protocol tunneling.
Setting the Protocol property to mpSSLHttp means using SSL protocol for interaction with MySQL server, not with HTTP server.

Re: Tunnel trough https

Posted: Tue 17 Apr 2018 11:55
by pedja2
Hi,

in 9.0.1 is added:
Support for HTTPS protocol is added

How can i use this? If try https url for tunnel i am getting error "" Secure connection i snot available"

Thanks

Re: Tunnel trough https

Posted: Wed 18 Apr 2018 09:19
by ViktorV
HTTPS protocol tunneling is only supported when using MyDAC components with SecureBridge components with the help of the TMySSLIOHandler component. To use HTTPS protocol tunneling, please place on the form the TMySSLIOHandler component, assign it to the TMyConnection.IOHandler property and set the Protocol property to mpHttp or mpSSLHttp.
The TMySSLIOHandler component is located in the mydacsbridge package. This package is included in the MyDAC demos. See the package installation instructions in the file "%MyDACDemos%\TechnologySpecific\SecureBridge\Readme.html", where %MyDACDemos% is the MyDAC Demo projects installation path on your computer.

Re: Tunnel trough https

Posted: Thu 24 May 2018 11:55
by pedja2
HI,

i have tried and it work but it is extremely slow. About 10x slower than http tunnel version.

How can fix this?

Thanks

Re: Tunnel trough https

Posted: Fri 25 May 2018 08:04
by ViktorV
It is wrong to compare the speed of work over HTTP and HTTPS protocols, because when using HTTPS protocol comparing to HTTP, some additional operations are performed: encryption (decryption), authentication and additional security data; and the execution time of these additional operations depends on very many environment factors of each specific case.
But the speed fall is in ten times - this is an unusual behavior. In order to investigate the specified behavior our components, please compose and send us a small sample demonstrating the issue with test access to your server and send it to us https://devart.com/company/contactform.html.

Re: Tunnel trough https

Posted: Fri 25 May 2018 09:28
by pedja2
Hi,

i have send you sample

Regards

Re: Tunnel trough https

Posted: Fri 25 May 2018 12:02
by ViktorV
When testing your sample, we got a result about the speed difference of executing the operations using the HTTP protocol and HTTPS by no more than twice, that is a quite acceptable result. Please specify the exact data you get.

Re: Tunnel trough https

Posted: Fri 25 May 2018 12:48
by pedja2
I am getting whole different results:

test 1: http=172 https=1969
test 2: http=344 https=1937
test 3: http=94 https=1859
test 4: http=297 https=1969

Re: Tunnel trough https

Posted: Fri 25 May 2018 13:59
by ViktorV
The speed of operations through the HTTPS protocol depends on very many factors of the environment (network infrastructure, network settings and restrictions, etc.) and, unfortunately, we cannot influence it in any way.
If you can avoid using the HTTP protocol, then you can use a direct connection to MySQL server using SSL, which will still protect your connection, but it will increase the speed of your work.

Re: Tunnel trough https

Posted: Fri 25 May 2018 14:29
by pedja2
I have tried on two another pc's (different network)...same result. What kind result i are you getting?
I know that https is slower then http but definitely not factor 7x-20x.
This make your tunnel option through https unusable.

Re: Tunnel trough https

Posted: Fri 25 May 2018 14:43
by ViktorV
We are getting whole different results:
test 1: http=3193 https=7407
test 2: http=3235 https=8156
test 3: http=3303 https=8125
test 4: http=3219 https=7469

Re: Tunnel trough https

Posted: Fri 25 May 2018 15:25
by pedja2
Strange...
Do you have own test server where i can test http/https connection. If so please send me message with credentials.

Re: Tunnel trough https

Posted: Tue 29 May 2018 08:17
by ViktorV
We used the sent sample and connected to your servers.