尝试使用不在“CurrentUser”(当前用户>个人>证书存储区)中的证书,但在计算机证书存储区中。 MySQL文档仅引用了MySQL教程,该教程在其示例中使用了CurrentUser,但我找不到实际有效证书位置字符串值的列表。我尝试了“CurrentComputer”,但却引发了运行时错误。
答案 0 :(得分:1)
答案 1 :(得分:0)
有效值为None
,CurrentUser
和LocalMachine
。
在.NET Connector的源文件MySql.Data/Provider/Source/MysqlDefs.cs中:
public enum MySqlCertificateStoreLocation
{
/// <summary>
/// Do not use certificate store
/// </summary>
None,
/// <summary>
/// Use certificate store for the current user
/// </summary>
CurrentUser,
/// <summary>
/// User certificate store for the machine
/// </summary>
LocalMachine
}