FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
314 views 0 comments
by anonymous
Hi,
We are managing plenty of Teltonika RUT995 devices.

We have to update/add new certificate to all of devices CA root. We want to automate this process.

Could you please advice which linux command will be the best to complete the task?

Thank you in advance!

1 Answer

0 votes
by anonymous

Hello,

  

The default certificate file is stored in /etc/uhttpd.crt file on the router. There could be many ways to replace it, but the easiest would most likely be for your application to connect to your device using SFTP, delete the original certificate, and replace it with yours. A router reboot would most likely be required as well afterward.

However, as I do not have any certificates to test this with, I'd recommend testing this on your side and letting me know if any issues occur.

For example, if you're using Python to automate the process, pysftp seems to be an ideal library for this, as only with a few lines of code you can connect to the device and replace the uhttpd file. Then you could SSH into the router and reboot it with the command reboot.

Let me know how it goes!

  

Best regards, 
DaumantasG