I had a similar issue when installing. I followed the below steps before installing or running the setup exe.
Check for any non-self-signed certificates, execute below PowerShell script to find out:
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$.Issuer -ne $.Subject}
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject}
If you found any result item from the above powershellPowerShell script then execute the below PowerShell command to move these non-self-signed certificates into the Intermediate Certification Authorities store :
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$.Issuer -ne $.Subject} | Move-Item -Destination Cert:\LocalMachine\CA
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Move-Item -Destination Cert:\LocalMachine\CA
After doing this , close the powershellPowerShell window and reopen to execute your sitecoreSitecore installation script.