I wouldn't recommend you to log in to any private or any relatively important account using public wifi. Not only it is unsafe but can also cause issues. Public wifi can contain various ways of stealing information from you, not to mention adware. But if you still want to do so here is how:
1. You need to import their site certificate into your keychain and make it trusted for your HTTPS/SSL connection. For all of the websites, you would need a Root certificate.
2. Click on the padlock icon, then in Connection tab/Certificate Information find your insecure issuer and download CRT file which can later be important in your systems keychain.
3. Afterward, open the file, find the options to import the certificate and it should work.
Hopefully, this helps to solve your issue. Good luck!