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. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
Certbot needs to use the public internet to reach the Let's Encrypt API to request a certificate. You must have at least outbound access to use Let's Encrypt certs.
There are ways to get certs for servers running on private networks. But, LE is not one of them.
An inbound connection to your server is also often used. But, is not required. You could use a DNS Challenge. But, an outbound connection is still necessary to make the initial cert request from your system.
The Mgmt IP does not has direct internet access (from where I login to the server) but we have Natted IP enabled from firewall end that allows internet access (only for Application purpose).
But to install Centbot or further certificate generation I cannot use internet directly. We do have a proxy server in between our server and firewall (physical).
You obviously would also need an internet connection for installing using the OS repo and beyond that, as mentioned already, also for actually using Certbot.
Note that to get a certificate, one or more challenges need to be validated, which would require either incoming access to port 80 or port 443 or controle over the DNS zone of your domain name.
I used the command to generate the certificate but getting below error. The service is actually running on http and not apache. Is there a separate command for http?
# systemctl status httpd.service
β httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-11-07 19:33:32 IST; 1 months 26 days ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1433 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
ββ 1433 /usr/sbin/httpd -DFOREGROUND
ββ 3976 /usr/sbin/httpd -DFOREGROUND
ββ 6059 /usr/sbin/httpd -DFOREGROUND
ββ 6073 /usr/sbin/httpd -DFOREGROUND
ββ 8582 /usr/sbin/httpd -DFOREGROUND
==============================
# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed
You have mail in /var/spool/mail/root
# cat /var/log/letsencrypt/letsencrypt.log
2024-01-03 19:00:40,587:DEBUG:certbot._internal.main:certbot version: 1.11.0
2024-01-03 19:00:40,587:DEBUG:certbot._internal.main:Location of certbot entry point: /bin/certbot
2024-01-03 19:00:40,587:DEBUG:certbot._internal.main:Arguments: ['--apache']
2024-01-03 19:00:40,587:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2024-01-03 19:00:40,611:DEBUG:certbot._internal.log:Root logging level set at 20
2024-01-03 19:00:40,611:INFO:certbot._internal.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2024-01-03 19:00:40,612:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2024-01-03 19:00:40,612:DEBUG:certbot._internal.plugins.selection:No candidate plugin
2024-01-03 19:00:40,612:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None