Removing HTTPS Warnings with Device-Generated Certificates/

From Teltonika Networks Wiki
Revision as of 15:39, 30 September 2024 by TomasV (talk | contribs)

Summary

One of the key benefits of HTTPS is that it enhances security and trust by protecting users from man-in-the-middle (MitM) attacks, which can be initiated through compromised or insecure networks. Hackers may exploit these vulnerabilities to steal sensitive information. By implementing SSL, data transmitted between the server and the browser during a user's interaction with your device is securely encrypted.


This page contains links with descriptions of all of the WebUI windows. If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Advanced" button, located at the top of the WebUI.

Networking rutos manual webui basic advanced mode 75.gif

To access the device WebUI using HTTPS, a certificate is required; otherwise, the browser will display the following error:

Https webui warning.png


Generating the certificates

Certificates can be generated and signed directly on our device. To do this, navigate to SystemAdministrationCertificates. In the certificate generation tab, select the following settings:

  1. File type – Simple
  2. IP addresses – 192.168.14.1 ( the IP address of the device that is used for WebUI access)
  3. Click on the Generate button.
Https webui generate certificate.png


After the certificates are generated, you can find them by opening theCertificates Manager tab. In this tab, you will be able to find and download if necessary all of the available certificates in your device altogether with the ones we recently generated.

Https webui certificates manager.png

Applying certificates to the device

After the certificates are generated, navigate to System → Administration → Access Control.
In the WebUI section make these selections:

  1. Certificate files from device – Enable
  2. Server certificate – server.cert.pem
  3. Server key – server.key.pem

Note: make sure you are using previously generated certificates

Https warning access control.png


Uploading CA on Windows PC

The CA certificate must be imported into either the computer's operating system or the web browser.
First, download the CA certificate from the Certificates Manager section on your Teltonika device.

Https ca cert.png

To upload a CA certificate on a WindowsOS based PC follow these steps:
In the device search bar, enter Manage User Certificates and open the service.

Cert manager windows.png









Navigate to Trusted Root Certification AuthoritiesCertificates in the Certificates - Current User tab, then click on Action tab and import your certificate by selecting All tasksImport.

Cert manager import.png
Cert manager import tab.png





















Uploading certificate to the browser

Another option is to upload the recently generated certificates directly to your browser instead of your PC. In this example, I used Google Chrome.
Start by opening your browser settings by clicking the three vertical dots in the top right corner, then navigate to Settings.

Https cert chrome.png


In the opened settings window, click on Privacy and SecuritySecurityManage certificates and a certificates pop-up window will appear.
Navigate to the Trusted Root Certification Authorities' and import your generated CA certificate.

Https cert chrome security import.png


Once done, restart your browser.

Testing

Once all the steps are completed and the certificate is imported, the warning should no longer appear when accessing your device via WebUI using the HTTPS protocol.

Testinghhtps.png


See also

HTTPS Warning Removal With Encrypted Certificate