PowerBI connection issue. The received certificate has expired
I am receiving the below error while trying to access SQL server (get data--> SQL server database).
Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The received certificate has expired.)
Also, when I check the logs I get the below error info:
"Microsoft.PowerBI.DataMovement.Pipeline.Diagnostics.MashupDataAccessValueException: Mashup expression evaluation error" . The gateway was working fine before and now I get this error. I checked the certificate issued to the server and looks fine. I would appreciate if someone could advise what could be missing or the correct spot where I can check to resolve this issue.
There can often be multiple certificates installed on a server. To check the one used by SQL Server you need to open SQL Server Configuration Manager, expand SQL Server Network Configuration, right-click Protocols for<server instance>, and then select Properties. On the Certificates tab you should see the details of the certificate that SQL Server is trying to use.
Thank you for the reponse. I had checked the certificate navigating to SQL Server Network Configuration>Protocols for<server instance>Properties and looks all fine with the certificate. I also made sure that there is only one certificate that SQL server is using and it does have a valid expiry date untill 2020.
Also, the fore encryption settings are set to "Yes". Just to be more clear what exactly Im doing is.. I am trying to
1. Open PowerBI desktop on my local machine
2. Click on "Get Data".
3. Select SQL server database
4. And then getting the certificate error when I try to connect the SQL server after the window I pasted below:
The On-premises gateway is also connected and is up and running. I would appreciate any help on this.
Or as a last resort, if you have force encryption set at the server level you could change the data source option in your Power BI Reports to not require encryption. This means that the client will not double check the validity of the certificate, but the server setting will still ensure that the connection is encrypted.
You can check if the connections are actually encrypted by running the following SQL query
Otherwise you might need to ask this question on some SQL Server forums as this seems to be more of an issue with SQL Server than Power BI.