Bonjour et merci pour les test que tu as réalisé,
Mais c’est un peu plus complexe, je m’explique:
Je suis en train de tester fedora server qui n’est pas mon serveur de production.
Lorsque je teste certbot je modifie mon serveur DMZ et uniquement à ce moment la je teste certbot pendant uncour instant.
Et voici le log de certbot:
sudo tail -n 200 /var/log/letsencrypt/letsencrypt.log
}
2023-08-13 19:57:28,525:DEBUG:acme.client:Storing nonce: DSHCHzleAxs5VQTfL9jAeXHrRmFlJGSqKncdOrVHYsoJ7fEg9so
2023-08-13 19:57:28,525:DEBUG:acme.client:JWS payload:
b''
2023-08-13 19:57:28,531:DEBUG:acme.client:Sending POST request to https://acme-v02.api.letsencrypt.org/acme/authz-v3/253176772956:
{
"protected": "eyJhbGciOiAiUlMyNTYiLCAia2lkIjogImh0dHBzOi8vYWNtZS12MDIuYXBpLmxldHNlbmNyeXB0Lm9yZy9hY21lL2FjY3QvMTI0ODAzOTcwNiIsICJub25jZSI6ICJEU0hDSHpsZUF4czVWUVRmTDlqQWVYSHJSbUZsSkdTcUtuY2RPclZIWXNvSjdmRWc5c28iLCAidXJsIjogImh0dHBzOi8vYWNtZS12MDIuYXBpLmxldHNlbmNyeXB0Lm9yZy9hY21lL2F1dGh6LXYzLzI1MzE3Njc3Mjk1NiJ9",
"signature": "Y5qmWbQCkIRn8qlSKYSwrUlcoFXWuR74Nsl4Pjq_nKaeinX-iNg8R4rN4yNPr1-ICPvqWhWtdymG-4MVfwndptlCWn8-kWlCi_WNoeixxCZoassORu7rSwIrlggVd1ypG8-jN3qkLGY0CTykzVSw0djIkWM3WxO_KG-hRScQVGX3mxDQvnc9lpygPlL9FS62bx7-6eYQi2OfeNA_iocmYG91W9rG5sPHI24csCf8eNalpdntIIfIiGTumB2VLx3kjfbUeh10FoTet5Ex3BZscqekUYrWQ4vlA3un0UuXrkzQ3tfvCQuQDCGB58nFnP7AqHlXdXzufiFdrdWyWbN19g",
"payload": ""
}
2023-08-13 19:57:28,699:DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "POST /acme/authz-v3/253176772956 HTTP/1.1" 200 797
2023-08-13 19:57:28,701:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Sun, 13 Aug 2023 17:57:28 GMT
Content-Type: application/json
Content-Length: 797
Connection: keep-alive
Boulder-Requester: 1248039706
Cache-Control: public, max-age=0, no-cache
Link: <https://acme-v02.api.letsencrypt.org/directory>;rel="index"
Replay-Nonce: HpCOzWvuXswVyQ8EYQ62HJFv7b-1RlJgXXBNIEmSYLouiEpZGkM
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
{
"identifier": {
"type": "dns",
"value": "assocadmin.fr"
},
"status": "pending",
"expires": "2023-08-15T19:50:59Z",
"challenges": [
{
"type": "http-01",
"status": "pending",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/253176772956/bSy_nA",
"token": "qNNNOJwpBAau7jU_v59XeCdOZVW91tuuEZzOBhZyVxM"
},
{
"type": "dns-01",
"status": "pending",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/253176772956/FDtBFw",
"token": "qNNNOJwpBAau7jU_v59XeCdOZVW91tuuEZzOBhZyVxM"
},
{
"type": "tls-alpn-01",
"status": "pending",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/253176772956/p2ipEA",
"token": "qNNNOJwpBAau7jU_v59XeCdOZVW91tuuEZzOBhZyVxM"
}
]
}
2023-08-13 19:57:28,701:DEBUG:acme.client:Storing nonce: HpCOzWvuXswVyQ8EYQ62HJFv7b-1RlJgXXBNIEmSYLouiEpZGkM
2023-08-13 19:57:28,702:INFO:certbot._internal.auth_handler:Performing the following challenges:
2023-08-13 19:57:28,703:INFO:certbot._internal.auth_handler:http-01 challenge for assocadmin.fr
2023-08-13 19:57:28,704:DEBUG:acme.standalone:Failed to bind to :80 using IPv6
2023-08-13 19:57:28,704:DEBUG:acme.standalone:Failed to bind to :80 using IPv4
2023-08-13 19:57:36,217:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 79, in run
servers = acme_standalone.HTTP01DualNetworkedServers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 219, in __init__
super().__init__(HTTP01Server, *args, **kwargs)
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 122, in __init__
raise last_socket_err
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 97, in __init__
server = ServerClass(*new_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 209, in __init__
super().__init__(
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 201, in __init__
super().__init__(*args, **kwargs)
File "/usr/lib64/python3.11/socketserver.py", line 456, in __init__
self.server_bind()
File "/usr/lib64/python3.11/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib64/python3.11/socketserver.py", line 472, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 170, in _try_perform_single
return self._perform_single(achall)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 176, in _perform_single
servers, response = self._perform_http_01(achall)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 185, in _perform_http_01
servers = self.servers.run(port, challenges.HTTP01, listenaddr=addr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 82, in run
raise errors.StandaloneBindError(error, port)
certbot.errors.StandaloneBindError: Problem binding to port 80: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/certbot/_internal/auth_handler.py", line 88, in handle_authorizations
resps = self.auth.perform(achalls)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 164, in perform
return [self._try_perform_single(achall) for achall in achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 164, in <listcomp>
return [self._try_perform_single(achall) for achall in achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 172, in _try_perform_single
_handle_perform_error(error)
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 226, in _handle_perform_error
raise errors.PluginError(msg)
certbot.errors.PluginError: Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
2023-08-13 19:57:36,218:DEBUG:certbot._internal.error_handler:Calling registered functions
2023-08-13 19:57:36,218:INFO:certbot._internal.auth_handler:Cleaning up challenges
2023-08-13 19:57:36,219:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 79, in run
servers = acme_standalone.HTTP01DualNetworkedServers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 219, in __init__
super().__init__(HTTP01Server, *args, **kwargs)
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 122, in __init__
raise last_socket_err
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 97, in __init__
server = ServerClass(*new_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 209, in __init__
super().__init__(
File "/usr/lib/python3.11/site-packages/acme/standalone.py", line 201, in __init__
super().__init__(*args, **kwargs)
File "/usr/lib64/python3.11/socketserver.py", line 456, in __init__
self.server_bind()
File "/usr/lib64/python3.11/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib64/python3.11/socketserver.py", line 472, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 170, in _try_perform_single
return self._perform_single(achall)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 176, in _perform_single
servers, response = self._perform_http_01(achall)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 185, in _perform_http_01
servers = self.servers.run(port, challenges.HTTP01, listenaddr=addr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 82, in run
raise errors.StandaloneBindError(error, port)
certbot.errors.StandaloneBindError: Problem binding to port 80: [Errno 98] Address already in use
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 "/usr/lib/python3.11/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/main.py", line 1864, in main
return config.func(config, plugins)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/main.py", line 1597, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/main.py", line 141, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/client.py", line 517, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/client.py", line 428, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/client.py", line 496, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/auth_handler.py", line 88, in handle_authorizations
resps = self.auth.perform(achalls)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 164, in perform
return [self._try_perform_single(achall) for achall in achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 164, in <listcomp>
return [self._try_perform_single(achall) for achall in achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 172, in _try_perform_single
_handle_perform_error(error)
File "/usr/lib/python3.11/site-packages/certbot/_internal/plugins/standalone.py", line 226, in _handle_perform_error
raise errors.PluginError(msg)
certbot.errors.PluginError: Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
2023-08-13 19:57:36,226:ERROR:certbot._internal.log:Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.