2
votes

I enabled secure connection by choosing a self-signed certificate on my SQL Server.

I can connect to it using SQL Server Management Studio and adding TrustServerCertificate=True into Additional Connection Parameters.

I need same configuration for FireDAC connection because it gives similar error

SSL Provider: The certificate chain was issued by an authority that is not trusted

when I try connecting.

How to tell this to FireDAC? (Delphi XE4, FireDAC: 8)

PS: I've already added my self-signed certificate into windows "Trusted Root Certification Authorities", but it seems that FireDAC ignores it.

Thanks

1

1 Answers

2
votes

You should add ODBCAdvanced=TrustServerCertificate=yes to your connection definition parameters. Also verify, that you have SQL Server Native Client installed. Read more: