logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Server sending two certificates for a virtual host
Author
20160413



Joined: 13 Apr 2016
Posts: 28

PostPosted: Thu 01 Feb '24 15:42    Post subject: Server sending two certificates for a virtual host Reply with quote

I am a bit puzzled. I have a website at www.example.org , and I configured it for HTTPS with a certificate via a dedicated virtual host (www.example.org.conf). Everything works; however, the server also sends a second certificate configured for the default HTTPS host, which is meant to be used for www.defauthostformyserver.org. (000-default.tls.conf) It is also being used for that default host without issues.

Is there a way to skip the additional loading of the certificate configured in 000-default.tls.conf for www.example.org.conf?
Back to top
20160413



Joined: 13 Apr 2016
Posts: 28

PostPosted: Sat 03 Feb '24 0:03    Post subject: Reply with quote

If I am not mistaken, the second cert from the default host is sent to clients with no SNI support.

I'm unsure why immuniweb.com scans consider "Server sends useless certificates." a "Misconfiguration or weakness". Qualys SSL Labs also detect this but do not complain about it.

Hmm, does anybody have a comment on this? I will be interested to read a second opinion.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7374
Location: Germany, Next to Hamburg

PostPosted: Fri 16 Feb '24 23:54    Post subject: Reply with quote

Use your "best" domains certificate for the default vhost. It will never match, but at least it is a valid one.

Keep in mind that immuniweb wants to sell you consultation.
Back to top


Reply to topic   Topic: Server sending two certificates for a virtual host View previous topic :: View next topic
Post new topic   Forum Index -> Apache