My certificate is not trusted in firefox dev edition but is in Safari

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

Opened in Firefox Dev edition
It produced this output:
Do not trust this website

My web server is (include version):
Mac OS X 10.15.6

The operating system my web server runs on is (include version):
-bash-4.2$ httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 2 2020 13:13:23

My hosting provider, if applicable, is:
linode

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 1.6.0

1 Like

You have an IPv4 address as wel as an IPv6 address. Your IPv6 address works perfectly. Nothing wrong there. However, your IPv4 address is serving a rather strange certificate chain:

Certificate chain
 0 s:CN = greenrobot.com
   i:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
 1 s:C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO RSA Domain Validation Secure Server CA
   i:C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO RSA Certification Authority
 2 s:C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO RSA Certification Authority
   i:C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root

It looks like your webserver is not very well configured. IPv4 and IPv6 should behave the same.

Check the results of the SSLLabs Server test for your site:

While your IPv6 might have a correct certificate chain, it has numerous problems that are worse!

2 Likes

Is it a certbot problem?

Can you access greenrobot.com in your browser that's not firefox dev edition without an error?

Should I reinstall-certbot?

Should I rehire my system admin who no longer has access to the server or maybe find a new one?

Thank you, I voted for Morpheus.

1 Like

No, probably not. This is a (web)server configuration issue. For some reason it's differently configured for IPv4 and IPv6, which is weird. And I don't think certbot would have done so.

I can (Chrome), but that's because I have IPv6 enabled. And your IPv6 works fine. It's by IPv4 which is troublesome.

Doesn't matter.

That's all up to you. If your previous system admin configured your webserver in the current way, it might be better to have a fresh set of eyes look at it though.

1 Like

There is someone here who is for hire as a consultant to get things straightened out quickly. I pinged him for you in case you're interested. We're always happy to help here without charge, of course. I offer you his services in case you want someone to log into your server to take care of things directly.

I’m interested as long as it’s not extremely expensive. Per hour or fixed price?

1 Like

I'm not sure of his rate structure.

He's @schoen if you want to PM him directly.

Hi @andytriboletti,

If you're interested in resolving the problem here on the forum, then you can get help free of charge (including from me). I agree entirely with @Osiris's interpretation here: your server is sending an incorrect certificate chain which causes some browsers to reject the certificate, while other browsers will figure out how to build a valid chain and accept the certificate. This difference is not just due to different browser versions but may even involve whether a particular browser instance has been used a lot or not. (Different browsers have different notions about "path building" to try to verify a certificate they encounter, and some of them are more forgiving, or more ambitious, about proactively trying to correct chain errors for themselves in various ways.)

You might want to look at this tool from SSLMate (which is a competitor to Let's Encrypt—in my opinion, a constructive, ethical competitor and a good Internet citizen)

You could try following the advice that this tool gives, although you probably already have a file somewhere on your system with the correct chain in it (so downloading a separate copy of the chain from the SSLMate tool is likely to be redundant). I agree that it's kind of odd that you have a discrepancy between your IPv4 and IPv6 behaviors. If you look at the files in /etc/httpd/conf.d (probably), maybe you can identify an inconsistency between the working IPv6 version and the non-working IPv4 version—assuming that they do both point to the same physical server! (if you do make changes there, try to back up the original versions first so that you can undo your changes easily if you find that they're not constructive)

This problem could be due to something as simple as not correctly updating an SSLCertificateChainFile directive or similar in Apache when switching from an old Comodo certificate to a new Let's Encrypt certificate.

Per @griffin's suggestion, if you'd like to pay me to log into your server to try to identify the problem myself, feel free to contact me with a private message on the forum. But this may not be necessary unless you feel very uncomfortable with modifying your own Apache configuration.

3 Likes

I can modify my SSL config. I’m not sure if I’ve been hacked or if this is normal. Let me know how I can resolve this. I have root access. Thank you. I can donate to let’s encrypt instead of generating an ssh key for someone and changing my password.

1 Like

Sorry that no one responded sooner. We'll try to help you out. :slightly_smiling_face:


I can see the correct website and certificate on my Samsung Galaxy S10 (Android) phone:


Here is your complete certificate history:


Here is the correct certificate chain:
fullchain.pem (3.5 KB)


You have an incorrect 302 Temporary redirect that should be a 301 Permanent redirect.

Screenshot_20201012-180729_Samsung Internet


I updated your test to detect changes:


Dig results:

greenrobot.com. 21599 IN AAAA 2600:3c00::f03c:91ff:fe84:6879
greenrobot.com. 21599 IN A 104.237.138.56
greenrobot.com. 3599 IN MX 10 ALT4.ASPMX.L.GOOGLE.com.
greenrobot.com. 3599 IN MX 5 ALT1.ASPMX.L.GOOGLE.com.
greenrobot.com. 3599 IN MX 1 ASPMX.L.GOOGLE.com.
greenrobot.com. 3599 IN MX 10 mail.greenrobot.com. greenrobot.com. 3599 IN MX 10 ALT3.ASPMX.L.GOOGLE.com.
greenrobot.com. 3599 IN MX 5 ALT2.ASPMX.L.GOOGLE.com.
greenrobot.com. 21599 IN TXT "v=spf1 ip4:104.237.138.56 ip6:2600:3c00::f03c:91ff:fe84:6879 include:_spf.google.com ~all"
greenrobot.com. 21599 IN SOA ns1.linode.com. andy.triboletti.gmail.com. 2021000012 14400 14400 1209600 86400
greenrobot.com. 21599 IN NS ns2.linode.com.
greenrobot.com. 21599 IN NS ns1.linode.com.
greenrobot.com. 21599 IN NS ns3.linode.com.
greenrobot.com. 21599 IN NS ns4.linode.com.
greenrobot.com. 21599 IN NS ns5.linode.com.


What says httpd -S ?

Hi Griffin,

Thanks for your help,

-bash-4.2$ httpd -S

AH00526: Syntax error on line 6 of /etc/httpd/conf.d/appdata.greenrobot.com.conf:

SSLCertificateFile: file '/etc/letsencrypt/live/appdata.greenrobot.com/cert.pem' does not exist or is empty

-bash-4.2$

1 Like

I have this in my /var/www/html/.htaccess

How do I get rid of the 302 if I specified a 301 in htaccess?

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.greenrobot.com$ [NC]

RewriteRule ^(.*)$ https://greenrobot.com/$1 [R=301,L]

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
1 Like

Firstly, if possible you should modify your apache configuration instead of using .htaccess files because it's much more efficient. In some cases though, like shared hosting, you may not have that option.

The default redirect (R) type is 302.

Here's a corrected and optimized version:

RewriteEngine On

RewriteCond %{HTTPS} off [NC,OR]
RewriteCond %{HTTP_HOST} ^www.greenrobot.com$ [NC]
RewriteRule ^ https://greenrobot.com%{REQUEST_URI} [R=301,L]
1 Like

This is certainly good to know.

Let's try sudo httpd -S

1 Like

I made the redirection changes.

My output of httpd -S as root:

[root@server1 html]# httpd -S
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:400
VirtualHost configuration:
[2600:3c00::f03c:91ff:fe84:6879]:443 is a NameVirtualHost
         default server greenrobot.com (/etc/httpd/conf/httpd.conf:425)
         port 443 namevhost greenrobot.com (/etc/httpd/conf/httpd.conf:425)
         port 443 namevhost hungerapp.greenrobot.com (/etc/httpd/conf/httpd.conf:468)
         port 443 namevhost vampires.greenrobot.com (/etc/httpd/conf/httpd.conf:503)
         port 443 namevhost www.greenrobot.com (/etc/httpd/conf/httpd.conf:536)
*:80                   is a NameVirtualHost
         default server greenrobot.com (/etc/httpd/conf/httpd.conf:403)
         port 80 namevhost greenrobot.com (/etc/httpd/conf/httpd.conf:403)
                 alias www.greenrobot.com
         port 80 namevhost hungerapp.greenrobot.com (/etc/httpd/conf/httpd.conf:454)
         port 80 namevhost vampires.greenrobot.com (/etc/httpd/conf/httpd.conf:490)
         port 80 namevhost piratewarsonline.com (/etc/httpd/conf/httpd.conf:565)
                 alias www.piratewarsonline.com
         port 80 namevhost moodledemo.greenrobot.com (/etc/httpd/conf/httpd.conf:571)
         port 80 namevhost greenrobot.net (/etc/httpd/conf/httpd.conf:576)
         port 80 namevhost forums.greenrobot.com (/etc/httpd/conf/httpd.conf:581)
         port 80 namevhost mobileadstats.greenrobot.com (/etc/httpd/conf/httpd.conf:586)
         port 80 namevhost jp.greenrobot.com (/etc/httpd/conf/httpd.conf:591)
         port 80 namevhost fr.greenrobot.com (/etc/httpd/conf/httpd.conf:595)
         port 80 namevhost forums.omniverselive.com (/etc/httpd/conf/httpd.conf:600)
         port 80 namevhost omniverselive.com (/etc/httpd/conf/httpd.conf:605)
                 alias www.omniverselive.com
         port 80 namevhost omniverse.greenrobot.com (/etc/httpd/conf/httpd.conf:611)
         port 80 namevhost omniverselive.greenrobot.com (/etc/httpd/conf/httpd.conf:616)
         port 80 namevhost charitygamegoods.com (/etc/httpd/conf/httpd.conf:621)
                 alias www.charitygamegoods.com
         port 80 namevhost allmytomorrowspetrescue.com (/etc/httpd/conf/httpd.conf:627)
                 alias www.allmytomorrowspetrescue.com
         port 80 namevhost datingeh.com (/etc/httpd/conf/httpd.conf:633)
                 alias www.datingeh.com
         port 80 namevhost andytriboletti.com (/etc/httpd/conf/httpd.conf:649)
                 alias www.andytriboletti.com
         port 80 namevhost appdata.greenrobot.com (/etc/httpd/conf/httpd.conf:665)
         port 80 namevhost whenisthenextaameeting.com (/etc/httpd/conf/httpd.conf:670)
                 alias www.whenisthenextaameeting.com
         port 80 namevhost pandemic-survival-list.com (/etc/httpd/conf/httpd.conf:676)
         port 80 namevhost blog.andytriboletti.com (/etc/httpd/conf/httpd.conf:681)
         port 80 namevhost triboletti.com (/etc/httpd/conf/httpd.conf:714)
                 alias www.triboletti.com
         port 80 namevhost surroundedbyspies.com (/etc/httpd/conf/httpd.conf:730)
                 alias www.surroundedbyspies.com
         port 80 namevhost lolcatsweb.com (/etc/httpd/conf/httpd.conf:766)
                 alias www.lolcatsweb.com
         port 80 namevhost andy.computer (/etc/httpd/conf/httpd.conf:772)
                 alias www.andy.computer
         port 80 namevhost blog.andy.computer (/etc/httpd/conf/httpd.conf:778)
         port 80 namevhost wikiafterdark.com (/etc/httpd/conf/httpd.conf:812)
                 alias www.wikiafterdark.com
         port 80 namevhost developer.charitygamegoods.com (/etc/httpd/conf/httpd.conf:829)
         port 80 namevhost myadserver.greenrobot.com (/etc/httpd/conf/httpd.conf:834)
         port 80 namevhost myadserver2.greenrobot.com (/etc/httpd/conf/httpd.conf:867)
         port 80 namevhost hire.greenrobot.com (/etc/httpd/conf/httpd.conf:883)
         port 80 namevhost track.greenrobot.com (/etc/httpd/conf/httpd.conf:889)
*:443                  is a NameVirtualHost
         default server appdata.greenrobot.com (/etc/httpd/conf.d/appdata.greenrobot.com.conf:2)
         port 443 namevhost appdata.greenrobot.com (/etc/httpd/conf.d/appdata.greenrobot.com.conf:2)
         port 443 namevhost server1.greenrobot.com (/etc/httpd/conf.d/ssl.conf:56)
         port 443 namevhost allmytomorrowspetrescue.com (/etc/httpd/conf/httpd.conf:639)
                 alias www.allmytomorrowspetrescue.com
         port 443 namevhost andytriboletti.com (/etc/httpd/conf/httpd.conf:655)
                 alias www.andytriboletti.com
         port 443 namevhost blog.andytriboletti.com (/etc/httpd/conf/httpd.conf:686)
         port 443 namevhost whenisthenextaameeting.com (/etc/httpd/conf/httpd.conf:696)
         port 443 namevhost myadserver2.greenrobot.com (/etc/httpd/conf/httpd.conf:705)
         port 443 namevhost triboletti.com (/etc/httpd/conf/httpd.conf:720)
                 alias www.triboletti.com
         port 443 namevhost surroundedbyspies.com (/etc/httpd/conf/httpd.conf:736)
                 alias www.surroundedbyspies.com
         port 443 namevhost piratewarsonline.com (/etc/httpd/conf/httpd.conf:746)
         port 443 namevhost www.piratewarsonline.com (/etc/httpd/conf/httpd.conf:756)
         port 443 namevhost andy.computer (/etc/httpd/conf/httpd.conf:783)
                 alias www.andy.computer
         port 443 namevhost blog.andy.computer (/etc/httpd/conf/httpd.conf:793)
         port 443 namevhost lolcatsweb.com (/etc/httpd/conf/httpd.conf:802)
                 alias www.lolcatsweb.com
         port 443 namevhost wikiafterdark.com (/etc/httpd/conf/httpd.conf:818)
                 alias www.wikiafterdark.com
         port 443 namevhost myadserver.greenrobot.com (/etc/httpd/conf/httpd.conf:849)
         port 443 namevhost track.greenrobot.com (/etc/httpd/conf/httpd.conf:894)
         port 443 namevhost hire.greenrobot.com (/etc/httpd/conf/httpd.conf:904)
         port 443 namevhost hungerapp.greenrobot.com (/etc/httpd/conf/httpd.conf:917)
         port 443 namevhost greenrobot.com (/etc/httpd/conf/httpd.conf:931)
         port 443 namevhost www.greenrobot.com (/etc/httpd/conf/httpd.conf:944)
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/etc/httpd/logs/error_log"
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default 
Mutex mpm-accept: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48
1 Like

That's quite a few namevhosts! :astonished:

Well, at least the next step is obvious...

What does /etc/httpd/conf/httpd.conf contain?

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"
#RewriteEngine On
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride None
    Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Relax access to content within /var/www.
#
<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ".ht*">
    Require all denied
</Files>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

</IfModule>

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    MIMEMagicFile conf/magic
</IfModule>

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall may be used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults if commented: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
EnableSendfile on

# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf




### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>





NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
	ServerName greenrobot.com
        ServerAlias www.greenrobot.com
	DocumentRoot /var/www/html
 <Directory />



        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
#       Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>




<VirtualHost 2600:3c00::f03c:91ff:fe84:6879:443>
        ServerName greenrobot.com
       #ServerAlias www.greenrobot.com
	DocumentRoot /var/www/html
	#SSLEngine on
	#SSLCertificateFile /etc/pki/tls/certs/greenrobot_com.crt
	#SSLCertificateKeyFile /root/myserver.key
	#SSLCertificateChainFile /etc/pki/tls/certs/greenrobot_com.ca-bundle
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/www.greenrobot.com/cert.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/www.greenrobot.com/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/www.greenrobot.com/chain.pem



 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
#       Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>



<VirtualHost *:80>
	ServerName hungerapp.greenrobot.com
	DocumentRoot /var/www/hungerapp.greenrobot.com
 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>

<VirtualHost 2600:3c00::f03c:91ff:fe84:6879:443>
        ServerName hungerapp.greenrobot.com
        DocumentRoot /var/www/hungerapp.greenrobot.com
           SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/hungerapp.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/hungerapp.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/hungerapp.greenrobot.com/chain.pem


 <Directory />
	Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/hungerapp.greenrobot.com>
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>



<VirtualHost *:80>
        ServerName vampires.greenrobot.com
        DocumentRoot /var/www/vampires.greenrobot.com
 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>
<VirtualHost 2600:3c00::f03c:91ff:fe84:6879:443>
        ServerName vampires.greenrobot.com
        DocumentRoot /var/www/vampires.greenrobot.com
           SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/vampires.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/vampires.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/vampires.greenrobot.com/chain.pem


 <Directory />
	Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/vampires.greenrobot.com>
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>














<VirtualHost 2600:3c00::f03c:91ff:fe84:6879:443>
        ServerName www.greenrobot.com
        #ServerAlias www.greenrobot.com
        Redirect permanent / https://greenrobot.com
	DocumentRoot /var/www/html
#	SSLEngine on
#	SSLCertificateFile /etc/pki/tls/certs/greenrobot_com.crt
#	SSLCertificateKeyFile /root/myserver.key
#       SSLCertificateChainFile /etc/pki/tls/certs/greenrobot_com.ca-bundle
        SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/www.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/www.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/www.greenrobot.com/chain.pem


 <Directory />
	Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
#	Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>



<VirtualHost *:80>
    ServerName piratewarsonline.com
    ServerAlias www.piratewarsonline.com
	DocumentRoot /var/www/piratewarsonline.com
</VirtualHost>

<VirtualHost *:80>
    ServerName moodledemo.greenrobot.com
        DocumentRoot /var/www/moodle
</VirtualHost>

<VirtualHost *:80>
	ServerName greenrobot.net
    DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *:80>
	ServerName forums.greenrobot.com
    DocumentRoot /var/www/forums
</VirtualHost>

<VirtualHost *:80>
	ServerName mobileadstats.greenrobot.com
    DocumentRoot /var/www/html/mobileads
</VirtualHost>

<VirtualHost *:80>
	ServerName jp.greenrobot.com
    DocumentRoot /var/www/html/languages/jp
</VirtualHost>
<VirtualHost *:80>
	ServerName fr.greenrobot.com
    DocumentRoot /var/www/html/languages/fr
</VirtualHost>

<VirtualHost *:80>
	ServerName forums.omniverselive.com
    DocumentRoot /var/www/omniverseforums
</VirtualHost>

<VirtualHost *:80>
    ServerName omniverselive.com
    ServerAlias www.omniverselive.com
    DocumentRoot /var/www/html/omniverse
</VirtualHost>

<VirtualHost *:80>
    ServerName omniverse.greenrobot.com
    DocumentRoot /var/www/html/omniverse
</VirtualHost>

<VirtualHost *:80>
    ServerName omniverselive.greenrobot.com
    DocumentRoot /var/www/html/omniverse
</VirtualHost>

<VirtualHost *:80>
    ServerName charitygamegoods.com
    ServerAlias www.charitygamegoods.com
    DocumentRoot /var/www/charitygamegoods.com
</VirtualHost>

<VirtualHost *:80>
    ServerName allmytomorrowspetrescue.com
    ServerAlias www.allmytomorrowspetrescue.com
    DocumentRoot /var/www/allmytomorrowspetrescue.com
</VirtualHost>

<VirtualHost *:80>
    ServerName datingeh.com
    ServerAlias www.datingeh.com
    DocumentRoot /var/www/datingeh.com
</VirtualHost>

<VirtualHost *:443>
    ServerName allmytomorrowspetrescue.com
    ServerAlias www.allmytomorrowspetrescue.com
    DocumentRoot /var/www/allmytomorrowspetrescue.com
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/allmytomorrowspetrescue.com/cert.pem
    SSLCertificateKeyFile /etc/pki/tls/private/allmytomorrowspetrescue.com/privkey.pem
    SSLCertificateChainFile /etc/pki/tls/misc/letsencrypt/chain.pem
</VirtualHost>

<VirtualHost *:80>
    ServerName andytriboletti.com
    ServerAlias www.andytriboletti.com
    DocumentRoot /var/www/andytriboletti.com
</VirtualHost>

<VirtualHost *:443>
    ServerName andytriboletti.com
    ServerAlias www.andytriboletti.com
    DocumentRoot /var/www/andytriboletti.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/andytriboletti.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/andytriboletti.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/andytriboletti.com/chain.pem
</VirtualHost>

<VirtualHost *:80>
    ServerName appdata.greenrobot.com
    DocumentRoot /var/www/appdata.greenrobot.com
</VirtualHost>

<VirtualHost *:80>
    ServerName whenisthenextaameeting.com
    ServerAlias www.whenisthenextaameeting.com
    DocumentRoot /var/www/whenisthenextaameeting.com
</VirtualHost>

<VirtualHost *:80>
    ServerName pandemic-survival-list.com
    DocumentRoot /var/www/pandemic-survival-list.com
</VirtualHost>

<VirtualHost *:80>
    ServerName blog.andytriboletti.com
    DocumentRoot /var/www/blog.andytriboletti.com
</VirtualHost>

<VirtualHost *:443>
    ServerName blog.andytriboletti.com
    DocumentRoot /var/www/blog.andytriboletti.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/blog.andytriboletti.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/blog.andytriboletti.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/blog.andytriboletti.com/chain.pem
</VirtualHost>


<VirtualHost *:443>
    ServerName whenisthenextaameeting.com
    DocumentRoot /var/www/whenisthenextaameeting.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/whenisthenextaameeting.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/whenisthenextaameeting.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/whenisthenextaameeting.com/chain.pem
</VirtualHost>

<VirtualHost *:443>
    ServerName myadserver2.greenrobot.com
    DocumentRoot /var/www/adserver2/public
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/myadserver2.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/myadserver2.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/myadserver2.greenrobot.com/chain.pem
</VirtualHost>

<VirtualHost *:80>
    ServerName triboletti.com
    ServerAlias www.triboletti.com
    DocumentRoot /var/www/triboletti.com
</VirtualHost>

<VirtualHost *:443>
    ServerName triboletti.com
    ServerAlias www.triboletti.com
    DocumentRoot /var/www/triboletti.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/triboletti.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/triboletti.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/triboletti.com/chain.pem
</VirtualHost>

<VirtualHost *:80>
    ServerName surroundedbyspies.com
    ServerAlias www.surroundedbyspies.com
    DocumentRoot /var/www/surroundedbyspies.com
</VirtualHost>

<VirtualHost *:443>
    ServerName surroundedbyspies.com
    ServerAlias www.surroundedbyspies.com
    DocumentRoot /var/www/surroundedbyspies.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/surroundedbyspies.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/surroundedbyspies.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/surroundedbyspies.com/chain.pem
</VirtualHost>

<VirtualHost *:443>
    ServerName piratewarsonline.com
    #ServerAlias www.piratewarsonline.com
    DocumentRoot /var/www/piratewarsonline.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/piratewarsonline.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/piratewarsonline.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/piratewarsonline.com/chain.pem
</VirtualHost>

<VirtualHost *:443>
    ServerName www.piratewarsonline.com
    Redirect permanent / https://piratewarsonline.com/
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/piratewarsonline.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/piratewarsonline.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/piratewarsonline.com/chain.pem

</VirtualHost>

<VirtualHost *:80>
    ServerName lolcatsweb.com
    ServerAlias www.lolcatsweb.com
    DocumentRoot /var/www/lolcatsweb.com
</VirtualHost>

<VirtualHost *:80>
    ServerName andy.computer
    ServerAlias www.andy.computer
    DocumentRoot /var/www/andy.computer
</VirtualHost>

<VirtualHost *:80>
    ServerName blog.andy.computer
    DocumentRoot /var/www/blog.andy.computer
</VirtualHost>

<VirtualHost *:443>
    ServerName andy.computer
    ServerAlias www.andy.computer
    DocumentRoot /var/www/andy.computer
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/andy.computer/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/andy.computer/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/andy.computer/chain.pem
</VirtualHost>

<VirtualHost *:443>
    ServerName blog.andy.computer
    DocumentRoot /var/www/blog.andy.computer
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/blog.andy.computer/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/blog.andy.computer/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/blog.andy.computer/chain.pem
</VirtualHost>

<VirtualHost *:443>
    ServerName lolcatsweb.com
    ServerAlias www.lolcatsweb.com
    DocumentRoot /var/www/lolcatsweb.com
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/lolcatsweb.com/cert.pem
    SSLCertificateKeyFile /etc/pki/tls/private/lolcatsweb.com/privkey.pem
    SSLCertificateChainFile /etc/pki/tls/misc/letsencrypt/chain.pem
</VirtualHost>

<VirtualHost *:80>
    ServerName wikiafterdark.com
    ServerAlias www.wikiafterdark.com
    DocumentRoot /var/www/wikiafterdark.com
</VirtualHost>

<VirtualHost *:443>
    ServerName wikiafterdark.com
    ServerAlias www.wikiafterdark.com
    DocumentRoot /var/www/wikiafterdark.com
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/wikiafterdark.com/cert.pem
    SSLCertificateKeyFile /etc/pki/tls/private/wikiafterdark.com/privkey.pem
    SSLCertificateChainFile /etc/pki/tls/misc/letsencrypt/chain.pem
</VirtualHost>


<VirtualHost *:80>
    ServerName developer.charitygamegoods.com
    DocumentRoot /var/www/developer.charitygamegoods.com
</VirtualHost>

<VirtualHost *:80>
    ServerName myadserver.greenrobot.com
    DocumentRoot /var/www/html/adserver/public
 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
#       Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>

<VirtualHost *:443>
    ServerName myadserver.greenrobot.com
    DocumentRoot /var/www/html/adserver/public
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/myadserver.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/pki/tls/private/myadserver.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/pki/tls/misc/letsencrypt/chain.pem
 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName myadserver2.greenrobot.com
    DocumentRoot /var/www/adserver2/public
 <Directory />
        Options FollowSymLinks
        AllowOverride All
        </Directory>
        <Directory /var/www/html>
#       Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>
</VirtualHost>


<VirtualHost *:80>
    ServerName hire.greenrobot.com
    DocumentRoot /var/www/hire.greenrobot.com
</VirtualHost>


<VirtualHost *:80>
    ServerName track.greenrobot.com
    DocumentRoot /var/www/track.greenrobot.com
</VirtualHost>

<VirtualHost *:443>
    ServerName track.greenrobot.com
    DocumentRoot /var/www/track.greenrobot.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/track.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/track.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/track.greenrobot.com/chain.pem
</VirtualHost>


<VirtualHost *:443>
    ServerName hire.greenrobot.com
    DocumentRoot /var/www/hire.greenrobot.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/hire.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/hire.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/hire.greenrobot.com/chain.pem

    # The certificates also must be set in the /etc/httpd/conf.d/ssl.conf file
    # the files are located in /etc/pki/tls/private and /etc/pki/tls/certs
</VirtualHost>


<VirtualHost *:443>
    ServerName hungerapp.greenrobot.com
    DocumentRoot /var/www/hungerapp.greenrobot.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/hungerapp.greenrobot.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/hungerapp.greenrobot.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/hungerapp.greenrobot.com/chain.pem

    # The certificates also must be set in the /etc/httpd/conf.d/ssl.conf file
    # the files are located in /etc/pki/tls/private and /etc/pki/tls/certs
</VirtualHost>



<VirtualHost *:443>
	ServerName greenrobot.com
    	#ServerAlias www.greenrobot.com
	DocumentRoot /var/www/html
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/greenrobot_com.crt
    SSLCertificateKeyFile /root/myserver.key
	SSLCertificateChainFile /etc/pki/tls/certs/greenrobot_com.ca-bundle


    # The certificates also must be set in the /etc/httpd/conf.d/ssl.conf file
    # the files are located in /etc/pki/tls/private and /etc/pki/tls/certs
</VirtualHost>
<VirtualHost *:443>
	ServerName www.greenrobot.com
	Redirect permanent / https://greenrobot.com/
  SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/greenrobot_com.crt
    SSLCertificateKeyFile /root/myserver.key
        SSLCertificateChainFile /etc/pki/tls/certs/greenrobot_com.ca-bundle

</VirtualHost>
1 Like

I tried putting it in reformat tags and got an error.

1 Like

No worries. Let's see if we can get some help to accomplish this. It's a lot to read through. I've flagged your post accordingly as I don't have the permission myself.

By the way, have you ever considered just getting an A&W (apex: greenrobot.com and wildcard: *.greenrobot.com) certificate instead of certifying all of these subdomains individually? It would probably save you a load of headaches if they're all or mostly hosted on one server. It would require using dns-01 challenges instead of the http-01 challenges you've been using. With dns-01 challenges, your http webserver operation becomes irrelevant, meaning that you don't need to worry about exceptions/configuration for your ACME client to create accessible challenge files. You would want to automate the dns updates though, which is a little bit of an extra step.

Sorry, I'm late to the party.

What is this all about?:

What shows:
certbot certificates

[don't be shy - get involved and be heard - start with: if you see something you like, then like it :heart:]

1 Like