Failed to connect to Microsoft SQL Server with Encrypted Connection Enabled
説明
When attempting to connect to a Microsoft SQL Server instance with encrypted connection enabled, an error “The certificate chain was issued by an authority that is not trusted” results and unable to connect.
Default configuration will not connect to SQL Server instance with encrypted connection enabled.
対策
The “Encrypt connection” needs to be checked and an additional parameter “TrustServerCertificate” set to “True” needs to be added to the connection properties. Perform the steps below to make the required changes:
Right-click on SQL Server connection | Properties.
Under the Login tab, enter the required information and ‘check’ the Encrypt connection.
Under the Advanced tab, add the parameters “TrustServerCertificate” to “True” and hit enter.