macOSのOpenSSLいまいちわからん

openssl s_client -connect www.mysite.net:443 2> /dev/null | openssl x509 -noout -enddate
unable to load certificate
4512521900:error:09FFF06C:PEM routines:CRYPTO_internal:no start line:/System/Volumes/Data/SWE/macOS/BuildRoots/37599d3d49/Library/Caches/com.apple.xbs/Sources/libressl/libressl-56.60.4/libressl-2.8/crypto/pem/pem_lib.c:684:Expecting: TRUSTED CERTIFICATE

Mac上のVagrantからならOK

vagrant@ubuntu2204:~$ openssl s_client -connect www.mysite.net:443 2> /dev/null | openssl x509 -noout -enddate
notAfter=Apr 16 11:25:30 2023 GMT

HomebrewのOpenSSLもOK
/usr/local//Cellar/openssl@3/3.0.8/bin/openssl s_client -connect www.mysite.net:443 2> /dev/null | openssl x509 -noout -enddate
notAfter=Apr 16 11:25:30 2023 GMT

HomebrewのOpenSSLに切り替えるかな?

export PATH=/usr/local/Cellar/openssl@3/3.0.8/bin:$PATH

これやとアップデートするとリンクが切れるね、どうしたらいんやろ?