You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

搜索“autoclose-html-plus”失败且提示证书已过期,如何解决?

解决安装“autoclose-html-plus”时证书过期的问题
  • 先检查系统时间和日期
    证书过期报错大概率是本地系统时间和实际时间不匹配导致的,确认系统时间、日期以及时区设置和当前实际情况一致。

  • 更新系统根证书存储

    • Windows:以管理员身份打开命令提示符,执行 certutil -generateSSTFromWU roots.sst,之后将生成的roots.sst文件导入系统证书存储。
    • macOS:打开终端,执行 sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/valid-cert.pem,或者直接通过「钥匙串访问」工具更新系统根证书。
    • Linux(Debian/Ubuntu):执行 sudo apt update && sudo apt install --reinstall ca-certificates;RHEL/CentOS系列执行 sudo yum update ca-certificates。
  • 临时跳过证书验证(仅用于测试,不建议长期使用)

    • 若通过npm安装:执行 npm install autoclose-html-plus --strict-ssl=false
    • 若在VS Code扩展商店安装:打开设置,搜索http.proxyStrictSSL,将其设置为false后重新搜索安装。
  • 更换软件源/镜像

    • npm环境:切换到国内镜像,执行 npm config set registry https://registry.npmmirror.com,之后再尝试安装。
    • VS Code扩展:在设置中添加国内镜像源配置,比如 "extensionsGallery": {"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery"},保存后重启VS Code再尝试搜索。

内容的提问来源于stack exchange,提问作者Peterson McCain

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 19:04:56