MyDAC SecureBridge Help Please
Posted: Sat 30 Sep 2017 18:18
Hi,
I am working with Delphi XE10 Seattle, latest MyDAC(installed Sept 28 2017) and latest SecureBridge (installed Sept 30 2017).
I am new to SecureBridge and struggling with the install / getting started. I am trying to connect with MySQL on Google Could using SSL. I have no problems when I connect with TMyConnection, setting the Options|Protocol to mpSSL and the SSLOptions CACert, Cert and Key properties to the appropriate data files.
I want to store multiple certificates in order to make different server connections from the same application, hence I have installed SecureBridge.
I have located the dproj/bpl and installed TMySSLIOHandler which I have connected to TMyConnection.
I have added TscFileStorage and connected from TMySSLIOHandler.
Immediately some issues:
(1) SCFileStorage OnCheckUserKey event references ClientInfo: TScSSHClientInfo which is not found by Delphi.
(2) Same issue with OnCheckUserPassword event.
(3) The IOHandler OnServerCertificateValidation event references var Errors: TScCertificateStatusSet but I cannot find any documentation relating to TScCertificateStatusSet .
(4) On compiling my small project, Delphi cannot find DCUs for CRSSLIOhandler or MySSLIOHandler.
I recently purchased the Source for MyDAC which does, fortunately have a copy of these units.
So after a struggle I have imported my CACert, my Cert and after importing the Cert I imported the Key within the Cert tab.
Now when I connect MyConnection I am given the error "The certificate is not trusted by the trust provider". I would be very grateful for some assistance to move this forward.
Finally, could someone please assist in exactly how I can import the CACert, Cert and Key using TStream so I can import them at run time?
Many thanks.
Regards
Tim hayes
I am working with Delphi XE10 Seattle, latest MyDAC(installed Sept 28 2017) and latest SecureBridge (installed Sept 30 2017).
I am new to SecureBridge and struggling with the install / getting started. I am trying to connect with MySQL on Google Could using SSL. I have no problems when I connect with TMyConnection, setting the Options|Protocol to mpSSL and the SSLOptions CACert, Cert and Key properties to the appropriate data files.
I want to store multiple certificates in order to make different server connections from the same application, hence I have installed SecureBridge.
I have located the dproj/bpl and installed TMySSLIOHandler which I have connected to TMyConnection.
I have added TscFileStorage and connected from TMySSLIOHandler.
Immediately some issues:
(1) SCFileStorage OnCheckUserKey event references ClientInfo: TScSSHClientInfo which is not found by Delphi.
(2) Same issue with OnCheckUserPassword event.
(3) The IOHandler OnServerCertificateValidation event references var Errors: TScCertificateStatusSet but I cannot find any documentation relating to TScCertificateStatusSet .
(4) On compiling my small project, Delphi cannot find DCUs for CRSSLIOhandler or MySSLIOHandler.
I recently purchased the Source for MyDAC which does, fortunately have a copy of these units.
So after a struggle I have imported my CACert, my Cert and after importing the Cert I imported the Key within the Cert tab.
Now when I connect MyConnection I am given the error "The certificate is not trusted by the trust provider". I would be very grateful for some assistance to move this forward.
Finally, could someone please assist in exactly how I can import the CACert, Cert and Key using TStream so I can import them at run time?
Many thanks.
Regards
Tim hayes