patrickkasie
Verified User
Dear DirectAdmin forum,
ChatGPT analysis between both servers at the end
When requesting an SSL for a domain pointer or alias, the mail.sbpg.nl in this example does not use its own certificate, but rather the general certificate from vps01.jk.nl. This is a problem, because this is not allowed when using DANE. This does not go for www.sbpg.nl and sbpg.nl and is exclusive for mail.sbpg.nl. This goes for every CentOS7 server (vps01.jk.nl which is an old one but still receives DA updates, vps06.jk.nl same thing)
This does not apply when using DANE on newer servers that use AlmaLinux. For example vps24.jk.nl does not have this problem. Even though DA doesn't properly update its GUI with those older servers, as I will show in screenshots, shouldn't the SSL certificate requests at least push through as they should on the newer servers?
I did switch DNS records at the appropriate times
vps01.jk.nl:
CentOS7
vps24.jk.nl
AlmaLinux 9
Conversation with ChatGPT:
(...)
What about my issue with the mail.sbpg.nl?
For mail.sbpg.nl, the issue is likely caused by differences in how the VirtualHost configurations are set up for the domain. Let’s analyze the details and resolve it.
(...)
Then why is it working when I'm using vps24 but not when I'm using vps01 even though they use the same certificate files? I made sure to switch in between both servers as I was testing them with internet.nl respectively
The issue lies in the environment differences between vps24 and vps01, even though they use the same certificate files. Here’s why this discrepancy can occur:
(...)
ChatGPT analysis between both servers at the end
When requesting an SSL for a domain pointer or alias, the mail.sbpg.nl in this example does not use its own certificate, but rather the general certificate from vps01.jk.nl. This is a problem, because this is not allowed when using DANE. This does not go for www.sbpg.nl and sbpg.nl and is exclusive for mail.sbpg.nl. This goes for every CentOS7 server (vps01.jk.nl which is an old one but still receives DA updates, vps06.jk.nl same thing)
This does not apply when using DANE on newer servers that use AlmaLinux. For example vps24.jk.nl does not have this problem. Even though DA doesn't properly update its GUI with those older servers, as I will show in screenshots, shouldn't the SSL certificate requests at least push through as they should on the newer servers?
I did switch DNS records at the appropriate times
vps01.jk.nl:
Email test: patrickkas.nl
Test for modern Internet Standards IPv6, DNSSEC, HTTPS, HSTS, DMARC, DKIM, SPF, STARTTLS, DANE, RPKI and security.txt
internet.nl
Email test: sbpg.nl
Test for modern Internet Standards IPv6, DNSSEC, HTTPS, HSTS, DMARC, DKIM, SPF, STARTTLS, DANE, RPKI and security.txt
internet.nl
lego | 4.17.4-SNAPSHOT-8164e09c |
vps24.jk.nl
Email test: patrickkas.nl
Test for modern Internet Standards IPv6, DNSSEC, HTTPS, HSTS, DMARC, DKIM, SPF, STARTTLS, DANE, RPKI and security.txt
internet.nl
Email test: sbpg.nl
Test for modern Internet Standards IPv6, DNSSEC, HTTPS, HSTS, DMARC, DKIM, SPF, STARTTLS, DANE, RPKI and security.txt
internet.nl
lego | 4.17.4-SNAPSHOT-8164e09c |
Conversation with ChatGPT:
(...)
What about my issue with the mail.sbpg.nl?
ChatGPT zei:
For mail.sbpg.nl, the issue is likely caused by differences in how the VirtualHost configurations are set up for the domain. Let’s analyze the details and resolve it.
Observations from the Configurations
- VirtualHost Specificity
- Neither vps24.txt nor vps01.txt contains a dedicated VirtualHost for mail.sbpg.nl.
- This means mail.sbpg.nl is likely being served by the default VirtualHost configuration or falling back to www.sbpg.nl or www.patrickkas.nl.
- Certificate Configuration
- Both configurations use the same certificate for patrickkas.nl and sbpg.nl, pointing to:
apache
Code kopiëren
SSLCertificateFile /usr/local/directadmin/data/users/patrickkas/domains/patrickkas.nl.cert.combined<br>SSLCertificateKeyFile /usr/local/directadmin/data/users/patrickkas/domains/patrickkas.nl.key<br> - This shared certificate must explicitly include mail.sbpg.nl in its Subject Alternative Names (SANs). If mail.sbpg.nl is not listed, SSL verification will fail.
- Both configurations use the same certificate for patrickkas.nl and sbpg.nl, pointing to:
(...)
Then why is it working when I'm using vps24 but not when I'm using vps01 even though they use the same certificate files? I made sure to switch in between both servers as I was testing them with internet.nl respectively
ChatGPT zei:
The issue lies in the environment differences between vps24 and vps01, even though they use the same certificate files. Here’s why this discrepancy can occur:
Key Differences Impacting Functionality
- Apache Configuration
- vps24:
- The configuration seems to correctly handle mail.sbpg.nl, possibly because:
- Apache defaults or fallback VirtualHost handling works correctly.
- The ServerName or ServerAlias in vps24's VirtualHosts matches the request for mail.sbpg.nl.
- The configuration seems to correctly handle mail.sbpg.nl, possibly because:
- vps01:
- The VirtualHost fallback might not correctly match mail.sbpg.nl.
- The request might be routed to a default VirtualHost that doesn’t match the certificate or domain.
- vps24:
- DirectAdmin Hostname
- DirectAdmin assigns a primary hostname to each server (e.g., hostname.vps24 or hostname.vps01).
- If vps24 is configured with a hostname included in the certificate SANs (e.g., mail.sbpg.nl), the mail subdomain will work correctly.
- If vps01 uses a hostname not covered by the certificate SANs, the server will default to the incorrect hostname, causing SSL mismatches.
- SSL Protocol Handling
- vps24:
- Likely has the SSL configuration correctly aligned with mail.sbpg.nl due to proper inclusion in the Apache VirtualHost or the fallback VirtualHost handling.
- vps01:
- Apache may be prioritizing the default VirtualHost, which doesn’t match mail.sbpg.nl, resulting in mismatched certificates.
- vps24:
(...)