MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. br4tt3
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 0

    br4tt3

    @br4tt3

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    br4tt3 Unfollow Follow

    Latest posts made by br4tt3

    • RE: Activating HTTPS causes black screen

      @rafhtl - could you elaborate on the part of the tls: true in the config file? I cant seem to find any reference to that specific config param. I added the changes that you mention in the electron.js file - with the same result as previously, pitch black screen as soon as i am running on https.

      checking the “output” from a remote connection (e.g remote control module) it works over htpps - but for the physical screen its pitch black!

      thanks!

      posted in Troubleshooting
      B
      br4tt3
    • RE: enable https / public certificates example - black screen

      Looked at the console of the dev window, detailed message being:

      Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy or a policy with “unsafe-eval” enabled. This exposes users of this app to unnecessary security risks.

      For more information and help. Consult https://electronjs.org/docs/tutorial/security
      This warning will not show up once the app is packaged.

      posted in Troubleshooting
      B
      br4tt3
    • RE: enable https / public certificates example - black screen

      @sdetweil - hey and thanks for reply! I checked the dev console: basically found this clue message:

      " Policy set or a policy with “unsafe-eval” enabled. This exposes users of
      this app to unnecessary security risks."

      Google it, found another entry where u participated: https://github.com/MichMich/MagicMirror/issues/2147

      I proceeded with adding row:
      meta http-equiv=“Content-Security-Policy” content=“script-src ‘self’;”
      to index.html, rebooted - same stuff…

      then came to think of that I had a reference inside of the config.js file which was pointing to a 192.168.x.x address… sorted that part out, so it works just fine over the certificate (over a browser from my main PC) - however, same stuff on the physical display, pitch black and still displaying the above listed “console clue”…

      Thanks again Sam!

      posted in Troubleshooting
      B
      br4tt3
    • enable https / public certificates example - black screen

      Hi all,

      Kind of new so forgive me if i’ve missed the “answer” if existing already. I’ve google it a couple of time - found references for it but nothing works out so far. My scenario is:
      MM running on a Pi4, I’ve got MM Remote Control running of it, and the config is running smoothly except that I want to have https enabled. That being said - what I’ve done:

      1. I moved the .pem files (private and fullchain) over to a local folder on the Pi.

      2. went into config.js and changed / added the following entries:

        useHttps: true,
        httpsPrivateKey: “/home/pi/MagicMirror/config/https/privkey.pem”,
        httpsCertificate: “/home/pi/MagicMirror/config/https/fullchain.pem”,

      3. Restart. From that point on: I can access the slideshow / configuraiton over
        https://myfakedomain.org:8080 - certificate is validated, is accessible, all good. I can also see configuration coming up when accessing it through the MM RemoteControl module integration. However…

      4. The physical display connected to the PI is pitch black, when trying to out the configuration and does not display what is shown over: https://myfakedomain.org:8080. As soon as i turn of useHttps: true to false, reboot - working again - except the https integration - both on the physical display or the web browser.

      Do I have to make additional changes, except the config.js file, to support https configurations? Also tried to find an existing template, example - where some one is using https/ssl but to no success so far.

      Thanks in advance!

      posted in Troubleshooting
      B
      br4tt3