I have the same promble when I use npm, and I got this in letsencrypt.log
2023-05-04 13:29:29,674:DEBUG:certbot._internal.main:certbot version: 2.4.0
2023-05-04 13:29:29,675:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-05-04 13:29:29,675:DEBUG:certbot._internal.main:Arguments: ['--config', '/etc/letsencrypt.ini', '--work-dir', '/tmp/letsencrypt-lib', '--logs-dir', '/tmp/letsencrypt-log', '--cert-name', 'npm-1', '--agree-tos', '--authenticator', 'webroot', '--email', 'rundaz@icloud.com', '--preferred-challenges', 'dns,http', '--domains', 'npm.rumda.cn']
2023-05-04 13:29:29,675:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-05-04 13:29:29,686:DEBUG:certbot._internal.log:Root logging level set at 30
2023-05-04 13:29:29,687:DEBUG:certbot._internal.plugins.selection:Requested authenticator webroot and installer None
2023-05-04 13:29:29,689:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * webroot
Description: 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).
Interfaces: Authenticator, Plugin
Entry point: webroot = certbot._internal.plugins.webroot:Authenticator
Initialized: <certbot._internal.plugins.webroot.Authenticator object at 0x7f6ada570e10>
Prep: True
2023-05-04 13:29:29,689:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.webroot.Authenticator object at 0x7f6ada570e10> and installer None
2023-05-04 13:29:29,689:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator webroot, Installer None2023-05-04 13:29:29,813:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2023-05-04 13:29:29,815:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:4432023-05-04 13:30:18,390:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connection.py", line 429, in connect
tls_in_tls=tls_in_tls,
File "/opt/certbot/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 450, in ssl_wrap_socket
sock, context, tls_in_tls, server_hostname=server_hostname
File "/opt/certbot/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket
session=session
File "/usr/lib/python3.7/ssl.py", line 853, in _create
self.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
socket.timeout: _ssl.c:1039: The handshake operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/certbot/lib/python3.7/site-packages/requests/adapters.py", line 499, in send
timeout=timeout,
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/certbot/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/certbot/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise value
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/opt/certbot/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/certbot", line 8, in <module>
sys.exit(main())
File "/opt/certbot/lib/python3.7/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 1864, in main
return config.func(config, plugins)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 1579, in certonly
le_client = _init_le_client(config, auth, installer)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 830, in _init_le_client
acc, acme = _determine_account(config)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 739, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/client.py", line 207, in register
acme = acme_from_config_key(config, key)
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/client.py", line 72, in acme_from_config_key
directory = acme_client.ClientV2.get_directory(config.server, net)
File "/opt/certbot/lib/python3.7/site-packages/acme/client.py", line 303, in get_directory
return messages.Directory.from_json(net.get(url).json())
File "/opt/certbot/lib/python3.7/site-packages/acme/client.py", line 678, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/opt/certbot/lib/python3.7/site-packages/acme/client.py", line 620, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/opt/certbot/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/opt/certbot/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/opt/certbot/lib/python3.7/site-packages/requests/adapters.py", line 578, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
2023-05-04 13:30:18,392:ERROR:certbot._internal.log:An unexpected error occurred:
2023-05-04 13:30:18,392:ERROR:certbot._internal.log:requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)