First, I already renew and get the new certificate
root@ubuntu-s-1vcpu-1gb-sgp1-01:~# openssl x509 -dates -noout -in/etc/letsencrypt/live/pattayaavenueproperty.xyz/fullchain.pem
notBefore=Nov 29 09:04:49 2023 GMT
notAfter=Feb 27 09:04:48 2024 GMT
and restart it, but my server is not update
root@ubuntu-s-1vcpu-1gb-sgp1-01:~# openssl s_client -connect pattayaavenueproperty.xyz:443 | openssl x509 -noout -dates
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = pattayaavenueproperty.xyz
verify error:num=10:certificate has expired
notAfter=Nov 20 06:16:19 2023 GMT
verify return:1
depth=0 CN = pattayaavenueproperty.xyz
notAfter=Nov 20 06:16:19 2023 GMT
verify return:1
notBefore=Aug 22 06:16:20 2023 GMT
notAfter=Nov 20 06:16:19 2023 GMT
So, I try to use automation of certbot
root@ubuntu-s-1vcpu-1gb-sgp1-01:~# certbot certonly --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
1: Apache Web Server plugin (apache)
2: Runs an HTTP server locally which serves the necessary validation files under
the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
server already running. HTTP challenge only (wildcards not supported).
(standalone)
3: Saves the necessary validation files to a .well-known/acme-challenge/
directory within the nominated webroot path. A seperate HTTP server must be
running and serving files from the webroot path. HTTP challenge only (wildcards
not supported). (webroot)
Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: pattayaavenueproperty.xyz
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Simulating renewal of an existing certificate for pattayaavenueproperty.xyz
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: pattayaavenueproperty.xyz
Type: unauthorized
Detail: 188.166.199.40: Invalid response from https://pattayaavenueproperty.xyz/.well-known/acme-challenge/WZojrgp3LFOrBTcg3dFtDLNf_4078PiJSBfUTt85pro: 404
Some challenges have failed.
root@ubuntu-s-1vcpu-1gb-sgp1-01:/# cat etc/apache2/sites-available/000-default-le-ssl.conf
IfModule mod_ssl.c
VirtualHost *:443
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName pattayaavenueproperty.xyz
SSLCertificateFile /etc/letsencrypt/live/pattayaavenueproperty.xyz/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/pattayaavenueproperty.xyz/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
/VirtualHost
/IfModule
I am stuck in this problem for 10 days, Thank you for help.