Skip to content
SeydX edited this page Jan 25, 2022 · 6 revisions

Generate self-signed certificate for SSL enabled UI

  1. Download cameraui_server.cnf located in the "misc" folder and edit "commonName" and "alt_names"

  2. Open terminal and navigate to the directory where the .cnf file is located

  3. Type following command in terminal:

openssl genrsa -out cameraui_server.key 2048

openssl req -new -out cameraui_server.csr -key cameraui_server.key -config cameraui_server.cnf

openssl x509 -req -days 3650 -in cameraui_server.csr -signkey cameraui_server.key -out cameraui_server.crt -extensions v3_req -extfile cameraui_server.cnf
  1. Open your config-ui-x interface, navigate to plugins and configure it. Under ssl, enter the .crt and .key path and restart.

  2. Open your ssl enabled interface on your desktop browser

On Windows

  1. Open e.g. Chrome developer tool, navigate to Security and click on "View certificate"

  2. Switch tab to Details and copy the file to desktop (just click next and give an example name for the file and save)

  3. Double click the saved Certificate and click "Install Certificate"

  4. Save the Certificate in "Trusted root certificate"

On MacOS

  1. Click the icon to the left of the URL.

  2. Drag the large certificate icon to a Finder window. A . cer file will be created in the location you drag it to.

  3. Open up Keychain Access. You can get to it from Application/Utilities/Keychain Access.app.

  4. Drag your certificate into Keychain Access.

  5. Go into the Certificates section and locate the certificate you just added

  6. Double click on it, enter the trust section and under “When using this certificate” select “Always Trust”

iOS

10/12. Send the on desktop saved certificate via Email to your mobile device and open the file on it.

11/13. eg on iPhone install the configuration file and also trust the root certificate (Settings > Info > Trusted Certificates Settings at bottom > Enable your certificate)

12/14. Open the Interface on your device and save it to your homescreen.