Re: More fun with SSL certificates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 3, 2023 at 2:25 PM Chris Adams <linux@xxxxxxxxxxx> wrote:
>
> Once upon a time, Jeffrey Walton <noloader@xxxxxxxxx> said:
> > Re, the info about a fake server:
> >
> >     As a workaround, configure a fake server that is never used but is
> >     just a decoy for httpd to associate with the default server
> >     configured in /etc/httpd/conf.d/ssl.conf...
> >
> >     ServerName  neverused.org
> >
> > IANA reserves example.com for this sort of thing. I strongly encourage
> > you to use the reserved name.
>
> example.com is not supposed to go in real systems, it's more for
> documentation and such.
>
> I'm not very familiar with Apache anymore, as I rarely touch have to
> touch it, but with nginx, I do this on Internet-accessible servers:
>
>     server {
>         server_name "";
>         listen 80 default_server;
>         listen [::]:80 default_server;
>         return 404;
>     }
>     server {
>         server_name "" _;
>         listen 443 ssl http2 default_server;
>         listen [::]:443 ssl http2 default_server;
>         ssl_reject_handshake on;
>         return 404;
>     }

Would Apache accept example.local or example.localdomain with the
appropriate hosts change? This Q&A seems to indicate it is allowed.[1]
It also seems like it does not run afoul of Apache's ServerName
docs.[2]

My big concern is using a real domain name, like neverused.org. I
don't believe IANA has reserved it. I know example.com is reserved.[3]
The worst case for example.com is, something breaks locally on his
machine.

[1] https://stackoverflow.com/a/12980008
[2] https://httpd.apache.org/docs/2.4/mod/core.html#servername
[3] https://www.iana.org/domains/reserved

Jeff
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux