Hello, according to the following instructions, you should customize the SSL certificate for Teltonika devices and reverse the order. Is this still the case?
I receive the following error message when I try to upload the certificate.
If I only use the root certificate (ISRG Root X1), the upload works. I can also connect to the MQTTX tool via MQTTS, but I get an SSL handshake error when establishing a connection with the Teltonika devices. The device is connected, but the SSL error message puzzles me. So my question is: is it enough to have the root certificate in the device, or does it have to be as described in the instructions?
Hello, does anyone have any ideas? The tracker connects and delivers data, but the error messages are puzzling me. As mentioned before, I only imported the root CA into the FMC003, but not the reverse chain. It couldn’t be imported.
The Teltonika Configurator only allows the certificates to be inserted with the correct file name extensions, which you can see in the screenshot you made above.
The certificate chain is there so that the device can perform the TLS process to securely connect to OpenRemote, and the entire certificate chain is required to allow that handshake to take place.
The SSL certificate needs to have a .pem extension to be inserted into the device using the Configurator. Make sure you use the entire chain in a pem file and insert it into the device. The quickstart has a command to help you with that.
fullchain.pem: a combination of cert.pem and chain.pem
privkey.pem: the private key to your certificate
When setting up SSL termination with HAProxy, you need to combine these fullchain.pem and privkey.pem into one file.
The result is a certificate consisting of the domain certificate, intermediate certificate, and private key. This is exactly where I made my mistake: I only saw that it had three sections, but didn’t notice that it contained the private key and not all three certificates.
This means that Let’s Encrypt fullchain.pem does not contain the complete chain, only the intermediate certificate and the domain certificate!
So I added the ISRG Root X1 to the fullchain and then adjusted the order. The normal order is actually:
Server certificate (domain)
Intermediate certificate (R13)
ISRG Root X1
According to the documentation (Openremote Fleetmanagement with Teltonika) you need this order:
ISRG Root X1
Intermediate Certificate (R13)
Server certificate (domain)
In my Teltonica device (FMC003), I can upload both versions, the certificate with the normal order and also the reverse order. However, I followed the documentation and chosed the reverse order.