Hi ! Everyone, there, so nice to read many of yours comments and replies. I studied âLetâs Encryptâ article at Wikipedia, and now I understood âletsencryptâ and âcertbotâ are almost the same program. I have been maintaining two WER servers with two different IPS (Internet Service Provider), One located at Tokyo-Hachioji, and the other stayed in Los Angeles. From a certain technology service guy, I obtained the following command lines of instructions.
sudo dnf update -y
sudo dnf install epel-release -y
sudo dnf upgrade -y
sudo dnf install firewalld fail2ban mod_ssl -y
sudo systemctl enable --now firewalld
----- Firewall set up,
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
----- Please configure SElinux
sudo setsebool -P httpd_can_network_connect on
----- Install Apache
sudo dnf install httpd -y
sudo systemctl enable --now httpd
----- Set up SSL
sudo dnf install certbot python3-certbot-apache -y
sudo certbot --apache
Around here, I messed up one of WEB-servers. The WEB - serverâs error messages are as below.
=== One WEB-Server
[root@localhost ~]# certbot --apache -d tunefind.info
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running apachectl configtest.
AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file â/etc/pki/tls/certs/localhost.crtâ does not exist or is empty
Enter email address (used for urgent renewal and security notices)
(Enter âcâ to cancel): c
An e-mail address or --register-unsafely-without-email must be provided.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
=================================================
=== The Other WEB-Server
[root@localhost ~]# certbot --apache -d tunefind.org
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter âcâ to cancel): mkidolosangeles@gmail.com
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.5-February-24-2025.pdf. You must
agree in order to register with the ACME server. Do you agree?
(Y)es/(N)o: Y
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Letâs Encrypt project and the non-profit organization that
develops Certbot? Weâd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for tunefind.org
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[root@localhost ~]# certbot --apache -d tunefind.info
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for tunefind.info
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[root@localhost ~]#
Here above are the all results I got up to now. Both of WEB Server didnât work out to obtain the Certificate, because of ERROR messages. In addition to that ERROR message, one of WEB Serverâs apache died with wrong port number assigment or overlapped port numbers. I am planning to re-set the latter WEB -server by a new WEB-server replacement in a few weeks. Meanwhile, if you may understand the ERROR commentâs meaning, and navigate me to where to fix, or where to look at, I will check them up.
Additional Information by nmap
[[[ tunefind.ORG ]]]
[root@localhost ~]# nmap tunefind.org
Starting Nmap 7.92 ( https://nmap.org ) at 2025-05-29 14:39 EDT
Nmap scan report for tunefind.org (45.25.216.45)
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
Nmap done: 1 IP address (1 host up) scanned in 9.48 seconds
This WEB-server is dead now.
==========
[[[ tunefind.INFO ]]]
[root@localhost ~]# nmap tunefind.info
Nmap scan report for tunefind.info (110.3.33.130)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
465/tcp open smtps
587/tcp open submission
993/tcp open imaps
995/tcp open pop3s
9090/tcp open zeus-admin
10000/tcp open snet-sensor-mgmt
20000/tcp open dnp
Nmap done: 1 IP address (1 host up) scanned in 6.11 seconds
This WEB-server is working now.
M.K.