See https://github.com/PrestaShop/PrestaShop/discussions/33351
This is a Windows problem. For SSL to work there must be an environment variable that points to the openssl.cnf file. Xampp and Wamp have such files, but they don't create correct paths to those files in the environment. Previous versions of Prestashop didn't bother about SSL but now for some reason it requires you to have it correctly set.
Press Windows + R to open the Windows Run prompt. Type in sysdm.cpl and click OK. Open the Advanced tab and click on the Environment Variables button in the System Properties window.
Add variable name: "OPENSSL_CONF" variable value like: "C:\xampp\apache\conf\openssl.cnf" with the path where you installed xampp. Note that after setting an environment variable you need to restart Windows for it to work.