Error while connecting using discourse_theme cli

That suggests that your certificate is broken somehow. If the site works in your browser, then maybe there is some spurious DNS or networking issue.