install-jellyfin-tizen icon indicating copy to clipboard operation
install-jellyfin-tizen copied to clipboard

Invalid certificate chain with certificate in signature

Open HadriMX opened this issue 2 years ago • 51 comments

Hi! I'm getting the following error when trying to install the app. This is a brand new QN90D TV, I have never installed Jellyfin. Any idea?

Thanks for the help!

Transferred the package: /home/developer/Jellyfin.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install AprZAARz4r.Jellyfin
package_path /home/owner/share/tmp/sdk_tools/tmp/Jellyfin.wgt
app_id[AprZAARz4r.Jellyfin] install start
app_id[AprZAARz4r.Jellyfin] installing[9]
app_id[AprZAARz4r.Jellyfin] installing[19]
app_id[AprZAARz4r.Jellyfin] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [6758]ms
Failed to install Tizen application.
Total time: 00:00:10.277

HadriMX avatar Apr 19 '24 03:04 HadriMX

Delete the app on the TV and try again.

Tntdruid avatar Apr 29 '24 15:04 Tntdruid

Delete the app on the TV and try again.

Hey, thank you for the reply. The thing is I don't have it installed, so I'm kinda lost.

HadriMX avatar May 01 '24 21:05 HadriMX

Getting the same error here. I also don't have the app installed.

baduhai avatar May 03 '24 00:05 baduhai

I've encountered this before, I've never had the time to dig into it, I think perhaps the builds for that day may have had an issue. Typically this will go away after a while.

If anyone has a moment to look into it I'd appreciate it.

Georift avatar May 03 '24 05:05 Georift

I've encountered this before, I've never had the time to dig into it, I think perhaps the builds for that day may have had an issue. Typically this will go away after a while.

I thought this was the case too, so I tried installing older builds, and I get the same error with all of them. For the record, my TV is a QN55Q60, running software version 1310.

baduhai avatar May 04 '24 23:05 baduhai

I have the same issue, brand new TV from the box (S95D). Could it be that tizen version is too new?

kalua85 avatar May 22 '24 13:05 kalua85

I had to create a Samsung certificate myself. I'm guessing some TV models require this instead of a Tizen certificate.

calebadcock avatar May 24 '24 19:05 calebadcock

Created my own samsung certificate and added my DUID to it and then building manually, installation worked without issue. So I guess this can be closed as I don't see how this can be automated.

kalua85 avatar May 25 '24 07:05 kalua85

Delete the app on the TV and try again.

This would be my current best advice ☝️ Is it still present for you both after trying this?

EDIT: This advice changes after version 2024-05-20. See this comment from jeppevinkel

Georift avatar May 27 '24 23:05 Georift

Delete the app on the TV and try again.

This would be my current best advice ☝️ Is it still present for you both after trying this?

EDIT: This advice changes after version 2024-05-20. See this comment from jeppevinkel

That is not a solution as the app was not even installed. It seems newer TV's do not work anymore with a generic Tizen certificate. I had to create a Samsung certificate and add my DUID to the distributor certificate, then I re-signed the package and could install without any issue.

kalua85 avatar May 28 '24 07:05 kalua85

Hmm @jeppevinkel do you know anything about this?

Georift avatar May 28 '24 14:05 Georift

Hmm @jeppevinkel do you know anything about this?

Unfortunately no. I don't have any newer TV's to test this on, but if they really need a certificate specifically for the DUID of the TV, then we are in trouble since there's no way to really automate that afaik.

jeppevinkel avatar May 28 '24 15:05 jeppevinkel

@kalua85 can you share the model number of your TV? Just wondering when this came into effect.

Georift avatar May 29 '24 03:05 Georift

@Georift it is an S95D, the new 2024 model. Exact modelcode is QE65S95DATXXN

kalua85 avatar May 29 '24 04:05 kalua85

Any update on the workaround for this? Getting this issue on du7200d still

willmaddrey avatar Jul 14 '24 00:07 willmaddrey

Any update on the workaround for this? Getting this issue on du7200d still

The only solution I currently know of that might work is to create your own Samsung certificate and build Jellyfin-Tizen. The problem is I can't make this kind of certificate automatically since it's tied to your specific TV. https://github.com/jeppevinkel/jellyfin-tizen-builds/issues/39#issuecomment-2130225325

jeppevinkel avatar Jul 15 '24 07:07 jeppevinkel

That's incredibly frustrating. I'm keen to continue to collect a list of TV model names in this issue so we can document the TV's we won't be able to install Jellyfin on automatically.

ℹ️ If you can't install Jellyfin on your TV, and you've tried uninstalling + reinstalling it, and this issue still persists, please drop your TV's make and model here.

Georift avatar Jul 16 '24 00:07 Georift

Yeah, I had to manually install it with new Samsung certificates on my Crystal UHD DU7200D. It wasn't too hard, just annoying that it rejected the existing certs. I also plugged in my DUID (whatever Samsung calls their IDs) into the cert too.

It worked once I did that, but I had to just follow the jellyfin-tinzen repo guide.

willmaddrey avatar Jul 16 '24 02:07 willmaddrey

Hi, I just tried to install the app on a new TV and it is currently NOT installed, I also get the same error, TV 75" model is Q60D

amigacli avatar Jul 31 '24 00:07 amigacli

Hi, I also had this issue with model QA55LS03DAWXXY (55' The Frame). As stated by others, I was getting "install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>" without ever having installed the Jellyfin app.

Took me a while but finally managed to get it installed after building with a new security profile/certificate.

I think it could be possible to import an existing security profile and add a TV DUID, then resign a built jellyfin webapp but I haven't tested this to confirm.

BurningCubez avatar Aug 02 '24 09:08 BurningCubez

I think it could be possible to import an existing security profile and add a TV DUID, then resign a built jellyfin webapp but I haven't tested this to confirm.

I actually do this now. Download the compiled app and resign with my own certificate as described in https://developer.tizen.org/development/tizen-studio/web-tools/cli#Pack_tizen_app

It has an example how to resign with your own certificate. Works perfectly and also updating works without issues, it is just a small manual step in the process.

kalua85 avatar Aug 02 '24 11:08 kalua85

Battling with this issue too. It's a Samsung TQ65S95DATXXC

Time to learn about Samsung certs I guess :melting_face:

nicovillanueva avatar Oct 03 '24 16:10 nicovillanueva

Same issue here. Man, f*** samsung.

Edit: Samsung TV model: UA55DU8300ULXL

SayantanRC avatar Oct 05 '24 15:10 SayantanRC

Same issue: QE55LS03DAUXXN

kbekkering avatar Oct 23 '24 15:10 kbekkering

I think it could be possible to import an existing security profile and add a TV DUID, then resign a built jellyfin webapp but I haven't tested this to confirm.

I actually do this now. Download the compiled app and resign with my own certificate as described in https://developer.tizen.org/development/tizen-studio/web-tools/cli#Pack_tizen_app

It has an example how to resign with your own certificate. Works perfectly and also updating works without issues, it is just a small manual step in the process.

I'm stuck there, would you mind writing down the steps as it applies to Jellyfin.wgt?

kbekkering avatar Oct 23 '24 15:10 kbekkering

I fixed it. Here's what you should do:

  1. generate a certificate in Tizen Studio's certificate manager
  2. download a build from https://github.com/jeppevinkel/jellyfin-tizen-builds
  3. re-sign the build so the certificate matches your TV tizen package --type wgt --sign PROFILE_NAME -- ./JELLYFIN_BUILD.wgt
  4. install the re-signed jellyfin build tizen install -n JELLYFIN_BUILD.wgt -t YOUR_TV_ID

kbekkering avatar Oct 23 '24 18:10 kbekkering

It took me several SEVERAL hours to get it working. But here is a noob friendly guide - including how to setup tizen studio.
https://gist.github.com/SayantanRC/57762c8933f12a81501d8cd3cddb08e4

SayantanRC avatar Oct 25 '24 00:10 SayantanRC

Same here...

Model: UN65DU7700GXZD

kimtiago avatar Oct 25 '24 19:10 kimtiago

Got it on LS32DM700UUXEN too.

Someone have find a fix ?

valentin2105 avatar Oct 27 '24 08:10 valentin2105

Been using this for many years docker run --rm ghcr.io/georift/install-jellyfin-tizen tviphere

Tntdruid avatar Oct 27 '24 08:10 Tntdruid