我有一个 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 中硬编码文件的内容,这样我就不必将文件传递给客户端。
你知道有什么更好的方法来做到这一点吗?