SQL SERVER 2022 - certificate error when creating a job for integration services

Marcio Matos 0 Reputation points
2024-04-10T03:35:21.82+00:00

In a test environment with SQL Server 2022 Developer Edition, I am trying to create a job to run an SSIS package.

These same packages have been successfully tested in SQL 2019.

When trying to create the job, configuring it as follows:

General / Owner : Administrator, I also tried with NT SERVICE\SQLSERVERAGENT

New Step:

type: SQL SERVER INTEGRATION SERVICES PACKAGE,

Package Source: SSIS Catalog

Source: localhost

Log on to the server: use windows authentication (only option for localhost)

When I click on the button to select the package, an error occurred:

"

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.) (Microsoft SQL Server, Error: -2146893019)

ADDITIONAL INFORMATION:

The certificate chain was issued by an authority that is not trusted

"

I am logged into the Database Engine using the Windows Authentication option.

Is it really mandatory to use a certificate when running the package on localhost ? Any tips on how to resolve this problem?

Additional Notes: After installing sql 2022, I installed "Microsoft Sql Server Native Client"

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,744 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,454 questions
{count} votes

3 answers

Sort by: Most helpful
  1. MJ 10 Reputation points
    2024-04-16T15:09:40.3633333+00:00

    I have the same issue on an instance where no SSL certificate is installed.

    I found out that it only occurs when using SSMS 20. In SSMS 19 the creation of the job for SSIS works fine.

    2 people found this answer helpful.

  2. MikeyQiao-MSFT 560 Reputation points Microsoft Vendor
    2024-04-11T01:47:05.4866667+00:00

    Hi,Marcio Matos

    SSL verification is required whenever you need to connect to a database engine instance.

    This article may help you fix this issue:

    https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/error-message-when-you-connect?source=recommendations

    Best regards

    Mikey Qiao


    Hope my answer may help you.

    0 comments No comments

  3. Bruce (SqlWork.com) 56,531 Reputation points
    2024-04-11T15:17:17.8533333+00:00

    Sqlserver 2022 uses ssl by default. It also uses a self signed (untrusted) certificate by default unless the installer configured trusted certificates.

    you can via the connection string disable encryption, or trust the unsigned certificate. See Scenario 2 option 1.

    https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/special-cases-for-encrypting-connections-sql-server?view=sql-server-ver16