# Custom port login is not working with ssl

**URL:** <https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747>\
**Category:** System\
**Created:** [May 12, 2026, 1:34pm UTC](https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747 "2026-05-12T13:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonk](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@Leonk](https://forum.hestiacp.com/u/Leonk)\
**Post date:** [May 12, 2026, 1:34pm UTC](https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747/1 "2026-05-12T13:34:09Z")

</div>

hi all

i ussued let’s encrypt cert for my hostname [example.com](http://example.com) (previously i had [example2.com](http://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](http://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](http://example2.com) but not for the actual one. (for [example.com:80](http://example.com:80) its ok ) what can I check?

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 12, 2026, 1:53pm UTC](https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747/2 "2026-05-12T13:53:18Z")

</div>

Hi,

Check whether the certificate is the new one:

```t
 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:

```t
systemctl restart hestia

```

---

<div class="post-metadata">

**Author:** ![Leonk](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@Leonk](https://forum.hestiacp.com/u/Leonk)\
**Post date:** [May 12, 2026, 2:00pm UTC](https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747/3 "2026-05-12T14:00:32Z")

</div>

> [@sahsanu](#):
>
> `systemctl restart hestia`

it works. thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [June 11, 2026, 2:00pm UTC](https://forum.hestiacp.com/t/custom-port-login-is-not-working-with-ssl/21747/4 "2026-06-11T14:00:46Z")

</div>

Closed on June 11, 2026, 2:00pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
