VSCode 解决ERR_CERT_AUTHORITY_INVALID
时间: 2023-08-08 21:04:49 浏览: 383
引用\[1\]:在源码文件/Qt5.13.2/5.13.2/Src/qtwebengine/src/webenginewidgets/api/qwebenginepage.cpp中修改了QWebEnginePage类的certificateError函数,将返回值从false改为true。\[1\]
引用\[2\]:当使用QWebEngineView加载网页时,遇到类似"ERR_CERT_AUTHORITY_INVALID"的证书错误时,需要让它自动忽略错误并继续加载网页。\[2\]
引用\[3\]:根据推断,这个问题是由于证书问题引起的。解决方案是在安装证书时选择"Trusted Root Certificate Authorities",而不是自动选项。可以使用命令certmgr.msc查看证书。\[3\]
问题: 如何解决VSCode中的ERR_CERT_AUTHORITY_INVALID错误?
回答: 要解决VSCode中的ERR_CERT_AUTHORITY_INVALID错误,可以按照以下步骤进行操作:
1. 打开源码文件/Qt5.13.2/5.13.2/Src/qtwebengine/src/webenginewidgets/api/qwebenginepage.cpp,将QWebEnginePage类的certificateError函数中的返回值改为true。\[1\]
2. 在使用QWebEngineView加载网页时,遇到"ERR_CERT_AUTHORITY_INVALID"错误时,需要让它自动忽略错误并继续加载网页。\[2\]
3. 在安装证书时,选择"Trusted Root Certificate Authorities",而不是自动选项。可以使用命令certmgr.msc查看证书。\[3\]
#### 引用[.reference_title]
- *1* *2* [QWebEngineView忽略证书错误ERR_CERT_AUTHORITY_INVALID](https://blog.csdn.net/zhxg576/article/details/130926865)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [whistle ERR_CERT_AUTHORITY_INVALID](https://blog.csdn.net/baidu_19473529/article/details/125196698)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文