Hi,
With last version of unidac 12.1 on delphi 13.2 I have an error when trying to connect to postgres in ssl mode, the error message is : The certifiicate subject name is not complies the server DNS name.
I use the last securebridge, and the connection work fine with previous unidac en delphi 13.2. the code is :
begin
FicheModuleDonnees.Connection.ProviderName := 'PostgreSQL';
FicheModuleDonnees.Connection.UserName := _Base_User;
FicheModuleDonnees.Connection.Password := _Base_Pwd;
FicheModuleDonnees.Connection.Server := UsedServer;
FicheModuleDonnees.Connection.Database := Instance;
try
FicheModuleDonnees.Connection.Port := StrToInt(UsedPort);
except on Exception do
end;
FicheModuleDonnees.Connection.SpecificOptions.Values['ApplicationName'] := 'MICROSAT 5';
FicheModuleDonnees.Connection.SpecificOptions.Values['Schema'] := _Schema;
if _SSLPostGres then
begin
FicheModuleDonnees.Connection.SpecificOptions.Values['SSLMode'] := 'smVerifyCA';
FicheModuleDonnees.Connection.SpecificOptions.Values['SSLCert'] := _SSLCertificatClientPostgres;
FicheModuleDonnees.Connection.SpecificOptions.Values['SSLKey'] := _SSLClefPrivePostgres;
FicheModuleDonnees.Connection.SpecificOptions.Values['SSLCACert'] := _SSLCertificatAuthPostgres;
end;
end;
I try to use FicheModuleDonnees.Connection.SpecificOptions.Values['SSLSNI'] := 'False'; but same result.
Could you help me.
Regards.