Skip to content

Custom SSL Certificate

Koushik Dutta edited this page Jan 27, 2022 · 4 revisions

To use a custom SSL Certificate, do the following:

  1. Set an environment variable SCRYPTED_HTTPS_OPTIONS_FILE that points to a JSON config file.
  • If using docker, remember to mount the config file as a volume.
  1. The JSON config file contains the options used during creation of the node https server.
  2. The config key and cert options are PEM encoded strings.

A sample can be found here: https://github.com/koush/scrypted/blob/main/server/test/test-cert.json