Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,I’m using Ubuntu2.4.4 in digitalocean and I can’t add Let’s Encrypt.
Ubuntu2.4.4,Server version: Apache/2.4.52 (Ubuntu)
root@ubuntu-s-4vcpu-8gb-amd-sfo3-01:~# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: 123456.com
2: www.123456.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Requesting a certificate for 123456.com and www.123456.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: www.123456.com
Type: unauthorized
Detail: 143.198.52.216: Invalid response from http://www.123456.com/.well-known/acme-challenge/Er6_YVQrVYvxgnvxNccwLvf0ROiOim12DgyPMb7i-Ug: 503
Domain: 123456.com
Type: unauthorized
Detail: 143.198.52.216: Invalid response from http://123456.com/.well-known/acme-challenge/mfilNLCRNwPfsqgM9TyIwuSAzM2JLjfyFPJAeh5rjts: 503
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
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.
This comment has been deleted
Why is that?
# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
An unexpected error occurred:
RuntimeError: ('Error during match procedure!', "/files/etc/apache2/sites-enabled/* [label()=~regexp('(?=(?P<g0>.*?\\.))(?P=g0).*')]//*[self::directive=~regexp('([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee][Oo][Pp][Tt][Ii][Oo][Nn][Aa][Ll])')]")
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.
# cat /var/log/letsencrypt/letsencrypt.log
2023-04-16 16:12:31,717:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-04-16 16:12:31,717:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-04-16 16:12:31,717:DEBUG:certbot._internal.main:Arguments: ['--apache']
2023-04-16 16:12:31,718:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-04-16 16:12:31,728:DEBUG:certbot._internal.log:Root logging level set at 30
2023-04-16 16:12:31,728:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-04-16 16:12:31,787:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2023-04-16 16:12:31,884:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==1.21.0', 'console_scripts', 'certbot')())
File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1574, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1270, in run
installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/selection.py", line 216, in choose_configurator_plugins
authenticator = installer = pick_configurator(config, req_inst, plugins)
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/selection.py", line 22, in pick_configurator
return pick_plugin(
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/selection.py", line 106, in pick_plugin
verified.prepare()
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/disco.py", line 297, in prepare
return [plugin_ep.prepare() for plugin_ep in self._plugins.values()]
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/disco.py", line 297, in <listcomp>
return [plugin_ep.prepare() for plugin_ep in self._plugins.values()]
File "/usr/lib/python3/dist-packages/certbot/_internal/plugins/disco.py", line 151, in prepare
self._initialized.prepare()
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/configurator.py", line 360, in prepare
self.parser = self.get_parser()
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/configurator.py", line 466, in get_parser
return parser.ApacheParser(
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/parser.py", line 67, in __init__
self.update_runtime_variables()
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/parser.py", line 279, in update_runtime_variables
self.update_includes()
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/parser.py", line 293, in update_includes
_ = self.find_dir("Include")
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/parser.py", line 552, in find_dir
ordered_matches.extend(self.find_dir(
File "/usr/lib/python3/dist-packages/certbot_apache/_internal/parser.py", line 534, in find_dir
matches = self.aug.match(
File "/usr/lib/python3/dist-packages/augeas.py", line 415, in match
raise RuntimeError("Error during match procedure!", path)
RuntimeError: ('Error during match procedure!', "/files/etc/apache2/sites-enabled/* [label()=~regexp('(?=(?P<g0>.*?\\.))(?P=g0).*')]//*[self::directive=~regexp('([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee][Oo][Pp][Tt][Ii][Oo][Nn][Aa][Ll])')]")
2023-04-16 16:12:31,886:ERROR:certbot._internal.log:An unexpected error occurred:
2023-04-16 16:12:31,886:ERROR:certbot._internal.log:RuntimeError: ('Error during match procedure!', "/files/etc/apache2/sites-enabled/* [label()=~regexp('(?=(?P<g0>.*?\\.))(?P=g0).*')]//*[self::directive=~regexp('([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee])|([Ii][Nn][Cc][Ll][Uu][Dd][Ee][Oo][Pp][Tt][Ii][Oo][Nn][Aa][Ll])')]")
I got the SSL for one of my domains, I also want to do the same for another domain but it doesnt appear when I run the command although I have its .conf file the same way as for first domain
any help?
Hi there, I was trying to install certbox using the command in step one: sudo apt install certbox, but the result shows: Reading package lists… Done Building dependency tree… Done Reading state information… Done E: Unable to locate package certbox
Any idea how to install certbox?
One thing to note with the command above as used above is that if you have more than one enabled configuration file and you select the “all” option when running sudo certbot --apache then all the sites will be added to just the one certificate:
Run sudo certbot --apache for each site, one domain at a time to get a certificate for each