Update Rest PKI Core from 2.x to 3.0
Now that ASP.NET Core 6.0 is deprecated, version 3.0 of Rest PKI Core has been migrated to use ASP.NET Core 8.0, which is the newest LTS release of ASP.NET Core, to be supported by Microsoft until November 2026.
Because of that, before updating your on-premises instance, you must follow a few extra steps.
1. Install the ASP.NET Core Runtime 8.0
Please refer to the Install the ASP.NET Core Runtime 8.0 section of the installation procedure corresponding to your platform:
- Linux
Tip
It is not necessary to uninstall previous versions of ASP.NET Core Runtime, multiple versions can co-exist in the same system without issues
Note
On Docker this step is not necessary since the new 3.x image already ships with the ASP.NET Core Runtime 8.0 embedded
2. Update Rest PKI Core
After following the steps above, proceed with the update instructions.
Troubleshooting certificate errors on SQL Server
Unlike on .NET 6, the new standard on .NET 8 is for the SQL server certificate to be validated. This might cause your instance to crash when starting, with the following error appearing on the logs:
Microsoft.Data.SqlClient.SqlException: '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.)'
In that case, ensure that your SQL Server is configured with a trusted TLS certificate and that it has not expired.
If you prefer to bypass the SQL Server certificate validation, append ;TrustServerCertificate=True
to the database connection string on the configuration file.
Azure App Services
If your Rest PKI Core instance is hosted on Azure App Services:
- On the Azure Portal, enter your App Service configuration
- Click on Configuration, then select the General settings tab
- On the Stack settings section:
- The Stack setting should be set to .NET
- The .NET version setting, should be set to .NET 8 (LTS)
Tip
The Stack settings section mentioned above is only shown if the App Service Plan is Windows-based. Otherwise, for Linux-based plans, no changes are needed.