Hi guys,
I'm not an expert in this matter but I'm currently the only one leading the project and I desperately need help to make this work before June 24th.
We run an MQTT broker on port 8883 on AWS Elastic Beanstalk (Node.js runtime) (details below).
The certificate is expiring on June 24th so I renewed it following the steps below also.
The problem is that the IoT devices are not establishing a successful TLS connection with this new certificate and the only error message on my end is the following:
{
"type": "Error",
"message": "140140484839296:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:308:\n",
"stack": "Error: 140140484839296:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:308:\n",
"library": "SSL routines",
"function": "ssl3_get_record",
"reason": "wrong version number",
"code": "ERR_SSL_WRONG_VERSION_NUMBER"
}
The root certificate included in the devices' firmware expires in September. I assume it's also issued by LetsEncrypt, not sure what details do you need to validate this. This is the confusing part to me.
Questions:
- How can I check that the existing root certificate accepts the renewed certificate in the broker?
- Is the renewed certificate invalid or is this just an issue with the TLS version? Not sure what to do in that case.
- Should I renew the root certificate now? (I should before September and I don't even know how to do it and I want it to last at least 5 years)
I'd appreciate your help guys. Thank you very much.
My domain is: broker.aritronix.com
I ran this command:
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel
sudo yum install certbot
sudo certbot -d broker.aritronix.com --manual --preferred-challenges dns certonly
It produced this output: Do not remember but the certs were issued with no errors or warnings.
My web server is (include version): nginx, but not in use since we run an MQTT server on port 8881/8883
The operating system my web server runs on is (include version): Amaxon Linux 2
My hosting provider, if applicable, is: AWS
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): AWS console
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): -bash: certbot: command not found
. Not sure why it is not there anymore, maybe the instance was recreated after the certificate was issued.