安装.net framework 4.8在Win7系统时,出现l以上证书错误。
解决:
1.找一台装有.net framework 4.8的机器,
利用PowerShell命令导出证书(到Desktop\ROOT\下,此命令在Win10能执行,Win7不能):
Get-ChildItem -Path Cert:\LocalMachine\Root\ |ForEach-Object {
Export-Certificate -Cert $_ -FilePath ($env:USERPROFILE + "\Desktop\ROOT\" + $_.Thumbprint + ".ce
r")}
2.Win7系统里批量导入证书(.bat文件):
cd /d "C:\users\admin