Clicking outside of the certificate page which shows when you click the lock icon on the left of a website should be closeable by clicking the area outside of the popup window.
@Vlad, shouldn't clicking outside of the certificate page defocus it?
No, this is not how macos popups work