Vault - EVD Invoke-SQLCmd fails with: "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted"

Vault - EVD Invoke-SQLCmd fails with: "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted"

215
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:01 PM


Symptom


When launching EVD the following error message raises:

 

Invoke-SqlCmd : A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)

 

At <Drive>:\ExportVaultData\CAMSSQLImport.ps1:65 char:4

+ Invoke-SqlCmd -ServerInstance $args[2] -Query $query -Err ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException

+ FullyQualifiedErrorId : SqlExceptionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand



Environment


12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Export Vault Data

PAS 12.6 and above

EVD exporting data from the vault to MSSQL.



Cause


By default, the script Invoke-SQLCmd does not trust the self-signed certificates.



Resolution


To trust the self-signed certificate, the parameter -TrustServerCertificate has to be added when calling Invoke-SqlCmd.

For instance:

 

Invoke-SqlCmd -TrustServerCertificate -ServerInstance .........

 

For more related information please refer to the following article:

Upgrade to v22.0.59: "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted" #35

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001DPrCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail