After upgrading the first PVS Server in the FARM to 2402 CU1 and running the Configuration Wizard the PVS Server appears down in the console. The Configuration Wizard completes with errors.
The following is one example found in the AOT logs:
The PVS Windows Event logs indicate the DB cannot be found:
The SQL Server Windows Event logs display:
Obtain a valid certificate. Please add a CA or Self-signed certificate to the SQL Server
In order to update the Trusted Authorities store on PVS you must have a certificate on-hand, as a certificate file. The certificate you need depends on how the SQL Server is configured.
If the SQL Server is configured with a self-signed certificate, then this same certificate can be used to establish trust.
If the SQL Server is configured with a CA-signed certificate, then you need to obtain the signing CA root certificate to establish trust. Depending on which CA is used to sign the server certificate, the PVS server may already have it.
If the SQL Server is configured to use the "default" certificate, indicated by the certificate property being blank, then the certificate CANNOT be trusted. This certificate is generated new each time the SQL server starts. Nor can this certificate be exported. Therefore, there is no way to establish trust.
If the SQL Server is using the default certificate with encryption enabled, then it needs to be deployed with a proper certificate for PVS to be able to use it. The certificate can be self-signed or CA-signed.
When you have the new certificate (Self-signed or CA signed):
This needs to be done on every PVS server. This is a one-time operation and does not need to be repeated when you rerun ConfigWizard or upgrade Citrix Provisioning. This does need to be repeated if the certificate has changed.
The issue is introduced in the Microsoft OLE DB Driver 19.x where certificate validation is strongly enforced. The Stream Process uses Microsoft OLE DB Driver version 19.x starting in PVS version 2311.
Microsoft OLE DB Driver 19 differs from earlier drivers used by PVS in the following ways.
These changes can cause unexpected database connection failures after upgrading.
Regarding encryption, PVS DOES NOT use the default. It specifies Encrypt=Optional when it connects to the database. This means the connection is encrypted if the SQL Server has Force Encryption=Yes, and otherwise it is unencrypted. This is identical to the behavior with earlier versions.
The Certificate is Not Trusted
If the SQL Server's server certificate is not trusted, you may see:
When the certificate is not trusted, a SQL client has two options.
PVS does not support the first option, as it is inherently insecure.
NOTE: the following instructions in the Citrix Provisioning documentation. See
"Enable secure connection from provisioning server to SQL server" on this page: https://docs.citrix.com/en-us/provisioning/current-release/install/pre-install