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.
My domain is: mqttbtest.caredpal.com
I ran this command:
sudo certbot certonly --manual --preferred-challenges dns –d mqttbtest.caredpal.com
It produced this output:
It produced a TXT record and passed the validation and finally showed the following:
IMPORTANT NOTES:
-
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/mqttbtest.caredpal.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/mqttbtest.caredpal.com/privkey.pem
Your certificate will expire on 2024-12-15. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew all of your
certificates, run "certbot renew" -
If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: Additional Donation Information - Let's Encrypt
Donating to EFF: Support EFF's Work on Let's Encrypt | Electronic Frontier Foundation
My web server is (include version):
Mosquitto version 1.6.10, an MQTT v3.1.1 broker.
Certbot generated SSL certificates are used in mosquitto.conf:
listener 8883
certfile /etc/letsencrypt/live/mqttbtest.caredpal.com/cert.pem
cafile /etc/letsencrypt/live/mqttbtest.caredpal.com/chain.pem
keyfile /etc/letsencrypt/live/mqttbtest.caredpal.com/privkey.pem
Problem:
I can ping mqttbtest.caredpal.com without any problem and get the ip associated with the domain is 8.154.38.204.
I can use ssl://8.154.38.204:8883 to connect to the mosquitto server without any problem.
But when I useed ssl://mqttbtest.caredpal.com:8883 to connect to the mosquitto I encountered the following issue:
[2024-09-17 11:52:01] [ERROR] Connection for MQTTBTest_SSL failed, MQTT.js onError trigger, Error: Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
[2024-09-17 11:52:01] [WARN] MQTTX force closed the connection MQTTBTest_SSL (Client ID: mqttx_93e9e033)
[2024-09-17 11:52:01] [INFO] Connection for MQTTBTest_SSL closed, MQTT.js onClose trigger
[2024-09-17 12:00:28] [INFO] Assigned ID 65948846-3751-44e2-b025-5cd9ee8b7e1d to MQTTX client
[2024-09-17 12:00:28] [INFO] Client MQTTBTest_SSL connected using MQTT/SSL connection at mqtts://mqttbtest.caredpal.com:8883
[2024-09-17 12:00:29] [ERROR] Connection for MQTTBTest_SSL failed, MQTT.js onError trigger, Error: Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
[2024-09-17 12:00:29] [WARN] MQTTX force closed the connection MQTTBTest_SSL (Client ID: mqttx_93e9e033)
The operating system my web server runs on is (include version):
CentOS Linux release 7.9.2009 (Core).
My hosting provider, if applicable, is:
Tencent cloud
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no.
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 1.11.0