Working OK from wifi but not working outside sounds like your problem is not with the certificate, but with something else interfering with your connection.
Are you port-forwarding or using a VPN to access from outside your network? Are you sure you're not mixing up HTTP and HTTPS ports?