“one command tool which can prove useful, as it’s designed to test the App Transport Security (ATS) built into macOS.”

Link. Diagnosing certificate problems.