Certificate Expiration on Server

I believe my forum is sent through a proxy (potentially) as when it was initially setup it was forum.domain.com but I had that changed to domain.com/forum

Other than that, I wouldn’t be too sure, but it appears all of my domains are without certificates, as its the webmin/virtualmin which requires one

Thanks for assisting, hopefully this will be resolved soon! :slight_smile:

I ran this again: https://certbot.eff.org/#centos6-apache

Last login: Thu Sep 21 09:01:57 2017 from 92.237.215.142
[root@server ~]# wget https://dl.eff.org/certbot-auto
–2017-09-21 09:11:01-- https://dl.eff.org/certbot-auto
Resolving dl.eff.org… 151.101.120.201, 2a04:4e42:1d::201
Connecting to dl.eff.org|151.101.120.201|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 57175 (56K) [application/octet-stream]
Saving to: “certbot-auto.8”

It runs this bit fine:
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

But: $ sudo ./path/to/certbot-auto --apache
command not found

I have centos6 & Apache 2.2.15

My previous link was about the ./path/to/certbot-auto issue, but in any case there's no reason to re-download Certbot because there's nothing wrong with your existing copy of Certbot.

You should look at the contents of /etc/letsencrypt/renewal/server.matchedbettingforum.com to see what it says the webroot directory is and see if this is still correct.

thanks for replying (again!)

I still have a directory with that path… it displays 1 file 'server.matchedbettingforums.com.conf

inside it says:

renew_before_expiry = 30 days

version = 0.14.2
archive_dir = /etc/letsencrypt/archive/server.matchedbettingforums.com
cert = /etc/letsencrypt/live/server.matchedbettingforums.com/cert.pem
privkey = /etc/letsencrypt/live/server.matchedbettingforums.com/privkey.pem
chain = /etc/letsencrypt/live/server.matchedbettingforums.com/chain.pem
fullchain = /etc/letsencrypt/live/server.matchedbettingforums.com/fullchain.pem

Options used in the renewal process

[renewalparams]
authenticator = webroot
installer = None
account = 3c0bd7a1f58fb61c7fa6aca7dde33e4b
webroot_path = /var/www/html,
[[webroot_map]]
server.matchedbettingforums.com = /var/www/html

So, if you create files in /var/www/html, do they show up at the corresponding locations on your web site?

What file would I need to create?

Sorry, not done this before!

The question is whether that’s actually where your web site content is being served from. So, for example, if you create a file called /var/www/html/test.txt, can you see it on http://server.matchedbettingforums.com/text.txt in a browser?

If not, your webroot might have moved to a new location since your certificate was originally obtained, which would be the most likely primary reason that the renewal is failing.

does the file have to be empty? I have created a blank test.txt file but it shows a page not found error.

There is a folder in /var/www/html called .well.known

The clearest thing would be to have it contain text like “hello” or “test”. :slight_smile:

Page Not Found errors!

OK, so that’s not your correct webroot!

Could you try this?

grep -r DocumentRoot /etc/apache2

Oh right!!

Am I right doing this straight from root or do i have to navigate to a certain path first?

[root@server ~]# grep -r DocumentRoot /etc/apache2
grep: /etc/apache2: No such file or directory
[root@server ~]#

Do you know where your web server is installed or configured?

Im not sure where to check, but if you could point me in the right direction I’ll have a look :slight_smile:

What server operating system are you using?

I need to read up on the tech terms i think :disappointed:

I know a few buzzwords that i have: Centos 6, Apache.

Developer is no longer responding after i requested training on the server, so ive kind of been left here to teach myself

Thanks! CentOS is an operating system, while Apache is a web server application.

https://www.centos.org/
https://www.apache.org/

In that case, you should try

grep -r DocumentRoot /etc/httpd/conf

scheonfilereq.txt (12.1 KB)

sorry for the delay, attached results in txt file

Thanks for that. This seems to show that you have a considerable number of sites hosted on this server. Can you recognize from this output which one of these is the site that you’re trying to renew the certificate for? What if you make the test file /home/matchedb/public_html/test.txt?