helpanother
New member
- Joined
- Feb 4, 2024
- Messages
- 5
Hi all,
I'm in the process of moving to DA from 20 long years with WHM & cPanel. I'm sick of their proposterous pricing increases.
Long story short, I'm trying to wrap my head around HSTS. I've setup a server with DA, installed it fine, it gacve me a hostname on da.direct, which I then changed to use the hostname I wanted, which is a .ing domain (which enforces HSTS, which I had forgotten about — enter the first issue). I have updated the GLUE for this domain at my provider to my server IP, and a nameserver ns1.example.domain.ing. Added that domain to DA, so I could manage the DNS, and also changed the nameservers of the domain at my provider to ns1.example.domain.ing. Updated the nameservers in the DNS, I have also changed the SERVERNAME variable inside .conf and done this through the panel too. I've check everywhere, and it has updated everywhere.
However, SSL is not working on the hostname.
I have ran:
It returns successfully, but for the old hostname:
As you can see, it still thinks the hostname is server-*-*-*-*.da.direct, so what is happening here and how can I resolve it. Because at present. I am locked out of the panel and only accessible via SSH
I am trying to migrate from cPanel, so would appreciate a rapid resolution.
I'm in the process of moving to DA from 20 long years with WHM & cPanel. I'm sick of their proposterous pricing increases.
Long story short, I'm trying to wrap my head around HSTS. I've setup a server with DA, installed it fine, it gacve me a hostname on da.direct, which I then changed to use the hostname I wanted, which is a .ing domain (which enforces HSTS, which I had forgotten about — enter the first issue). I have updated the GLUE for this domain at my provider to my server IP, and a nameserver ns1.example.domain.ing. Added that domain to DA, so I could manage the DNS, and also changed the nameservers of the domain at my provider to ns1.example.domain.ing. Updated the nameservers in the DNS, I have also changed the SERVERNAME variable inside .conf and done this through the panel too. I've check everywhere, and it has updated everywhere.
However, SSL is not working on the hostname.
I have ran:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single $(hostname -f) 4096
It returns successfully, but for the old hostname:
Code:
[root@we scripts]# cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single ns1.example.domain.ing 4096
Setting up certificate for a hostname: ns1.example.domain.ing
2024/02/04 11:21:45 [INFO] [server-*-*-*-*.da.direct] acme: Obtaining SAN certificate
2024/02/04 11:21:45 [INFO] [server-*-*-*-*.da.direct] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/311479034337
2024/02/04 11:21:45 [INFO] [server-*-*-*-*.da.direct] acme: authorization already valid; skipping challenge
2024/02/04 11:21:45 [INFO] [server-*-*-*-*.da.direct] acme: Validations succeeded; requesting certificates
2024/02/04 11:21:53 [INFO] [server-*-*-*-*.da.direct] Server responded with a certificate for the preferred certificate chains "ISRG Root X1".
Certificate for server-*-*-*-*.da.direct has been created successfully!
DirectAdmin certificate has been setup.
Setting up cert for Exim...
2024/02/04 11:21:54 info executing task task=action=exim&value=restart
2024/02/04 11:21:54 info executing task task=action=dovecot&value=restart
Setting up cert for WWW server...
2024/02/04 11:23:25 info executing task task=action=httpd&affect_php_fpm=no&value=reload
Setting up cert for FTP server...
2024/02/04 11:23:25 info executing task task=action=pure-ftpd&value=restart
2024/02/04 11:23:25 info executing task task=action=directadmin&value=restart
As you can see, it still thinks the hostname is server-*-*-*-*.da.direct, so what is happening here and how can I resolve it. Because at present. I am locked out of the panel and only accessible via SSH
I am trying to migrate from cPanel, so would appreciate a rapid resolution.