macos 在使用 iphone 热点网络时候遇到的 SSL 连接失败的问题

  ~ brew install wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.24.5
Already downloaded: /Users/z/Library/Caches/Homebrew/downloads/885bce6d1c81de373d8479681e3ccbb748be9eca29a8a3b3c95e6479a98458bd--wget-1.24.5.bottle_manifest.json
==> Fetching dependencies for wget: libunistring, gettext, libidn2, ca-certificates and openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.2
Already downloaded: /Users/z/Library/Caches/Homebrew/downloads/48ac60445a77a63996cf15f6414f68a620d544fb683031b14eb3aea95c3064f6--libunistring-1.2.bottle_manifest.json
==> Fetching libunistring
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:5b70a
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to pkg-containers.githubusercontent.com:443

Error: wget: Failed to download resource "libunistring"
Download failed: https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:5b70acd6aa97435ecb2abbfdc04f4e31fa3861a37ae7590b0da64704c5c311b5

SSL 连接需要使用数字签名验证服务器的身份,证书包含了一个有效期,通常包含开始和结束时间。

如果客户端的系统时间不正确,则在建立连接时可能会出现证书失效的错误。

检查 iphone 和 macos 的时区,发现两者不一致,一个是shanghai,另一个是beijing,修改 iphone 上的时区为 shanghai 后,连接回复正常。

posted @ 2024-10-20 12:45  zjy4fun  阅读(9)  评论(0编辑  收藏  举报