3

我有一个 MySQL 服务器,并且我有用于 SSL 连接到 MYSQL 服务器的客户端证书和密钥。在使用 MyDAC 连接到 mysql 的 delphi 中,我可以使用:

MySQL1Connection.SSLOptions.CACert := 'file location'
MySQL1Connection.SSLOptions.Cert := 'file location'
MySQL1Connection.SSLOptions.Key := 'file location'
MySQL1Connection.SSLOptions.ChipherList := 'All';
MySQL1Connection.Options.Protocol := mpSSL;

但上述应用程序中的问题是,我必须将文件提供给客户端。现在,我想在 .exe 中硬编码文件的内容,这样我就不必将文件传递给客户端。

你知道有什么更好的方法来做到这一点吗?

4

1 回答 1

1

我已经通过使用安全桥组件的 TScFileStorage 组件解决了这个问题(https://www.devart.com/sbridge/components.html

这些步骤可在此链接的第 3 节中找到:https ://www.devart.com/mydac/docs/?secureconnections.htm

于 2016-08-25T07:05:53.627 回答