-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Restore-BcDatabaseFromArtifacts because of SSL Provider issue #3572
Comments
The same situation when I am trying to create a new BC container with external SQL.
|
Full script (that I can run and repro the problem) + full output please. |
Sorry, I thought my first comment was enough :) Script to create a new BC Container
Output
Another example:
Output
I need to use a F.ex. here: https://github.com/microsoft/navcontainerhelper/blob/b2410696c2c9ce68b63f3ef1a65c0c09d0c58ed1/Bacpac/Remove-BcDatabase.ps1#L41C16-L44C1, I thin if we add this When I use Invoke-Sqlcmd command, there is an error
But if I add this switch, it is OK
|
What SQL Server are you running on the host? |
SQL Server Standard, version 16.0.4105.2 |
Is your SQL Server installed with a self-signed certificate for SSL communication? |
IDK how to check it. If I go to SQL Server Configuration Management, all encryptions etc. are turned off. Going through this article https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-sql-server-encryption?view=sql-server-ver16 I didn't see, if the SQL have some certificates installed. I've checked the system register, even sp_configure T-SQL queries, nothing. I don't know, what can I do more, so why I am asking about add the TrustServerCertificate switch. I can fork the repository and make it by myself and then make a Pull Request. |
The problem is that the current implementation works for everyone else. Any change needs to be tested with various versions. |
Looking The reason for this is that you have a newer version of the SqlServer powershell module on your computer. |
Fixes #3572 --------- Co-authored-by: freddydk <freddydk@users.noreply.github.com>
Fixed in preview |
Hi. I can't restore a database from artifacts on my external SQL because of issue "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted".
Regarding this issue: microsoft/SQLServerPSModule#35 there is a switch
-TrustServerCertificate
in the SQLServer module. Can you add that switch to theRestore-BcDatabaseFromArtifacts
script?The text was updated successfully, but these errors were encountered: