문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top