OneLiberty / moonlight-chrome-tizen

A WASM port of Moonlight for Samsung Smart TV's running Tizen OS (5.5 and up)
GNU General Public License v3.0
185 stars 15 forks source link

[118, -12] Certificate Error on installing Moonlight (Tizen 8.0 - 2024 TVs) #37

Open raghavkanwal opened 4 months ago

raghavkanwal commented 4 months ago

image

TV model is QN65QN85DBFXZC - It's a 2022 model.

I've confirmed that develop mode is on, docker engine is running via Docker Desktop. I'm not sure what the solution to the root cause of this error is:


Transferred the package: /home/moonlight/Moonlight.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install MoonLightS.MoonlightWasm
package_path /home/owner/share/tmp/sdk_tools/tmp/Moonlight.wgt
app_id[MoonLightS.MoonlightWasm] install start
app_id[MoonLightS.MoonlightWasm] installing[9]
app_id[MoonLightS.MoonlightWasm] installing[19]
app_id[MoonLightS.MoonlightWasm] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [1203]ms
Failed to install Tizen application.```
OneLiberty commented 4 months ago

Someone reported the same issue on the discord. It's kind of weird, i'll try to fix that.

I thought this was an issue related to the 2024 models. But it seems that i was wrong. I'll keep you informed !

raghavkanwal commented 4 months ago

@OneLiberty I'm sorry, I was incorrect, this is a 2024 model.

Kingo64 commented 4 months ago

I ran into the same issue when upgrading from KyroFrCode's version. I uninstalled it in the apps list and restarted the TV but it seems like I didn't fully uninstall under the hood. Therefore, you might already have existing install of Moonlight even if it isn't showing up in the TV apps list. You can confirm this with: sdb shell 0 vd_applist | grep Moonlight

If you can see results for MoonLightS.MoonlightWasm then you may need to uninstall it with sdb shell 0 vd_appuninstall MoonLightS.MoonlightWasm

Afterwards you can install as normal, this resolved the issue for me.

raghavkanwal commented 4 months ago

I ran into the same issue when upgrading from KyroFrCode's version. I uninstalled it in the apps list and restarted the TV but it seems like I didn't fully uninstall under the hood. Therefore, you might already have existing install of Moonlight even if it isn't showing up in the TV apps list. You can confirm this with: sdb shell 0 vd_applist | grep Moonlight

If you can see results for MoonLightS.MoonlightWasm then you may need to uninstall it with sdb shell 0 vd_appuninstall MoonLightS.MoonlightWasm

Afterwards you can install as normal, this resolved the issue for me.

I just tried this just in case, but sdb shell 0 vd_applist | grep Moonlight returned nothing. It's a brand new 2024 TV that I just bought last week, so I doubt it already had moonlight installed earlier, haha. But no dice either way.

Still stuck on the same problem, any advice appreciated.

jroselle commented 4 months ago

Hello, just wanted to add I am seeing the same issue, 2024 S95D model TV. Fresh install, first "developer mode" app so likely nothing else installed.

app_id[MoonLightS.MoonlightWasm] install start app_id[MoonLightS.MoonlightWasm] installing[9] app_id[MoonLightS.MoonlightWasm] installing[19] app_id[MoonLightS.MoonlightWasm] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3> spend time for wascmd is [875]ms

Thanks for any help provided, hopefully I won't need to sign up for a Samsung dev account to get the signatures...

jroselle commented 4 months ago

Wanted to followup for other folks on this - I did need to go install tizen studio to get a Samsung developer cert specifically and then sign the package with that cert. So still open but right now probably not an easier way to do it?

OneLiberty commented 4 months ago

It seems like the only way until we can figure a way. yeah, i'll keep it open until there is a better way of installing it for 2024 models.

For anyone reading this and having this issue :

You need to install Tizen Studio and sign the app using your own Samsung Account You can use this project Moonlight.zip to create the package.

jhonpedro commented 3 months ago

I'm sorry, but I'm not really sure of what to do once I have the Tizen Studio installed.

Can you please give more details?

OneLiberty commented 3 months ago

This is quite a long process. I can't explain everything. But you can follow this https://github.com/fgl27/smarttv-twitch?tab=readme-ov-file#tizen-package-managerinstalling-the-tools follow from "Installing the tools" up to "Install the App"

Few things worth mentioning :

I don't have the time to create a full guide on how to do it but here are the main steps :

  1. Install Tizen Studio, Certificate Manager and TV extensions.
  2. Import the App as a Tizen TV project. (Alternatively you can create a new project and copy/paste all the file from the archive into it.)
  3. Launch the remote device manager and connect to the TV (this imply that you've activated developer mode).
  4. Create a certificate using the certificate manager. (Preferably Samsung which require an account, but a Tizen might work).
  5. Launch/Run the app by right-clicking the project folder "Run As" -> "Tizen Web Application"

Voilà, hope this helps

jhonpedro commented 3 months ago

I followed this tutorial on the first link installing the extensions and the steps that you gave, and it totally worked!

Thank you!!