Custom port login is not working with ssl

hi all

i ussued let’s encrypt cert for my hostname example.com (previously i had example2.com i changed it via v-change-sys-hostname) via v-add-letsencrypt-host

it works, but when i try to open login page on custom port example.com:7777 I have error:

has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it via a secure connection. You cannot add an exception to visit this site.

and if i inspect this cert i see its issued to previous hostname example2.com but not for the actual one. (for example.com:80 its ok ) what can I check?

Hi,

Check whether the certificate is the new one:

 openssl x509 -in /usr/local/hestia/ssl/certificate.crt -noout -issuer -subject -dates -ext subjectAltName | sed -E -e 's/^\s*//g' -e 's/^DNS:/SANs: /' -e 's/\s?DNS://g' -e '/X509v3/d'

If it’s the new one, restart hestia:

systemctl restart hestia

it works. thanks