webos-homebrew-channel icon indicating copy to clipboard operation
webos-homebrew-channel copied to clipboard

Certificate error when installing apps: "unable to get local issuer certificate"

Open AntonFaer opened this issue 11 months ago • 57 comments

17107146850928744775656814682801

Seems like all apps give this kind of error Anybody knows how to fix this issue? Thanks

AntonFaer avatar Mar 17 '24 22:03 AntonFaer

Since you didn't include any information whatsoever about your TV, I can only guess.

GitHub's previous certificate expired recently, and their new one uses a root that is probably not present on older webOS versions. Updating the firmware will not help, as the cert store embedded in node is unlikely to be any different.

A fix for this and similar certificate issues is planned for the next release of Homebrew Channel. Until then, you can manually download and install applications.

throwaway96 avatar Mar 17 '24 22:03 throwaway96

@throwaway96 Sorry forgot to mention: LG OLED65C7P SV: 06.05.10 Issue started 2 days ago.

Please guide how to install app manually. Thank you

AntonFaer avatar Mar 17 '24 22:03 AntonFaer

curl -k -L -o /tmp/app.ipk '<URL goes here>'
luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'

You'll need to know the URL of the IPK you want to install.

Note that if you're installing/updating Homebrew Channel itself and your TV is rooted, remember to elevate after installing and before rebooting:

/media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service/elevate-service

You can also use Dev Manager.

throwaway96 avatar Mar 17 '24 23:03 throwaway96

I also have an update message on TV. Will Homebrew work on SV 06.10.30? Worth to update?

AntonFaer avatar Mar 17 '24 23:03 AntonFaer

I also have an update message on TV. Will Homebrew work on SV 06.10.30? Worth to update?

Could become harder to impossible for you to install webosbrew again with newer TV Software version.

jospezial avatar Mar 25 '24 02:03 jospezial

Same issue here - I am on release v0.5.1. I know that getting to the v0.6.3 requires the safe updater app, but downloading the safe updater has the same problem. Is it recommended to SSH in and then manually download and install the safe updater app?

ThreeMuskets12 avatar Mar 26 '24 15:03 ThreeMuskets12

https://github.com/webosbrew/dev-manager-desktop/releases The appimage was my workaround for update youtube app.

jospezial avatar Mar 26 '24 17:03 jospezial

Issue with the certificate came back again recently. Can't install any of the apps in homebrew. Any suggestions? Thanks.

LG OLED65C7P SV: 06.05.10

AntonFaer avatar Mar 27 '24 15:03 AntonFaer

curl -k -L -o /tmp/app.ipk '<URL goes here>'
luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'

You'll need to know the URL of the IPK you want to install.

Hello

when I do that I get the following:

root@LGwebOSTV:~# curl -k -L -o /tmp/app.ipk 'https://github.com/we bosbrew/youtube-webos/releases/download/v0.3.2/youtube.leanback.v4_ 0.3.2_all.ipk' luna-send-pub -w 10000 -i 'luna://com.webos.appInsta llService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp /app.ipk","subscribe":true}' % Total % Received % Xferd Average Speed Time Time T ime Current Dload Upload Total Spent L eft Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: --:-- 0 100 378k 100 378k 0 0 352k 0 0:00:01 0:00:01 --: --:-- 352k curl: (6) Could not resolve: luna-send-pub (Domain name not found) 1000010000curl: (1) Protocol "luna" not supported or disabled in li bcurl 10000 [1/3]: "id":"com.ares.defaultName" --> <stdout> --_curl_--"id":"com.ares.defaultName" curl: (3) Illegal port number 10000 [2/3]: "ipkUrl":"/tmp/app.ipk" --> <stdout> --_curl_--"ipkUrl":"/tmp/app.ipk" curl: (3) Illegal port number 10000 [3/3]: "subscribe":true --> <stdout> --_curl_--"subscribe":true curl: (3) Illegal port number

Any ideas? TV is a OLED55C97LA with firmware 05.20.07

1basti1 avatar Mar 28 '24 20:03 1basti1

Those are supposed to be on separate lines.

throwaway96 avatar Mar 28 '24 20:03 throwaway96

Those are supposed to be on separate lines.

Oh, I do that on my phone with connectBot. It's a bit hard. I'll try again. ty

edit: that worked. thank you so much

1basti1 avatar Mar 28 '24 20:03 1basti1

curl -k -L -o /tmp/app.ipk '<URL goes here>'
luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'

You'll need to know the URL of the IPK you want to install.

Note that if you're doing this for Homebrew Channel and your TV is rooted, remember to elevate after installing and before rebooting:

/media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service/elevate-service

You can also use Dev Manager.

Is this all that is needed? I did this with the latest build of the Youtube app and after launching it does not show any adblocking options and adblocking does not work as if the unmodified Youtube app was installed

igorkulman avatar Apr 01 '24 22:04 igorkulman

@igorkulman

Did you uninstall the stock YouTube app first?

throwaway96 avatar Apr 01 '24 22:04 throwaway96

@igorkulman

Did you uninstall the stock YouTube app first?

Yes, I actually had the 0.3.1 of the modified app installed and wanted to update to 0.3.2 so I uninstalled 0.3.1 before doing the manual install of the 0.3.2 from the Github url.

igorkulman avatar Apr 01 '24 22:04 igorkulman

@igorkulman

Are you sure the stock one didn't get automatically reinstalled or something? Run

ls -l /media/cryptofs/apps/usr/palm/applications/youtube.leanback.v4

throwaway96 avatar Apr 01 '24 22:04 throwaway96

Interesting, the app is not in /media/cryptofs/apps/usr/palm/applications/, I only see there Netflix, Plex and 1 other app I do not have installed anymore.

This is the log from installing it

root@LGwebOSTV:~# luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":
"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'
{"subscribed":true,"returnValue":true}
{"id":"com.ares.defaultName","statusValue":35,"details":{"receivedSize":"0","packageId":"","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":36,"details":{"receivedSize":"0","packageId":"","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":37,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":262,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"download","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":263,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"download","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":264,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"download","state":"ipk parsing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":32,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"app closing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":33,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"app closing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":34,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"app closing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":11,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":12,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":13,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing : start","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":17,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing : installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":27,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing : service installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":28,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing : service installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":29,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installing : service installing","update":false,"ipkFile":"/tmp/app.ipk"}}
{"id":"com.ares.defaultName","statusValue":30,"details":{"receivedSize":"0","packageId":"youtube.leanback.v4","premium":false,"modifiedTime":"","totalSize":"0","verified":false,"progress":100,"installBasePath":"/media/developer","paused":false,"simpleStatus":"install","state":"installed","update":false,"ipkFile":"/tmp/app.ipk"}}

after which it appeared in the app launcher on the TV.

But when I use the webOS Dev Manager it shows the app version 0.3.2 as installed

Screenshot 2024-04-02 at 0 29 51

When I use the webOS Dev Manager and delete the app then install it again from the Available tab it appears on the TV but is still not in /media/cryptofs/apps/usr/palm/applications/.

My TV info

Screenshot 2024-04-02 at 0 32 56

igorkulman avatar Apr 01 '24 22:04 igorkulman

@igorkulman

So you pressed the green button and nothing happened? Do you know how to inspect an app with the Chromium devtools?

throwaway96 avatar Apr 01 '24 22:04 throwaway96

Yes, pressing the green button does nothing. When the app start it does not even show the text about the possibility to press the green button to access the config. And the adds play for every video.

I do not know how to inspect the app with dev tools, but I can learn if there is a link to some documentation.

Btw where is the app installed on the filesystem if it is not in /media/cryptofs/apps/usr/palm/applications? Maybe I can first look the files looks correct or something.

igorkulman avatar Apr 01 '24 22:04 igorkulman

/media/cryptofs/apps/usr/palm/applications is where the stock app would be.

YTAF should be in /media/developer/apps/usr/palm/applications. (Specifically, /media/developer/apps/usr/palm/applications/youtube.leanback.v4.)

There's a page on webosbrew.org that talks about the devtools stuff.

throwaway96 avatar Apr 02 '24 01:04 throwaway96

I turned on the TV in the morning after it had been off for about 8 hours and in the app the green button started working and ads got blocked.

I noticed 0.3.3 is out so I installed 0.3.3 and blocking got broken again. I tried rebooting the TV and it did not help.

I am quite confused by this ...

igorkulman avatar Apr 02 '24 07:04 igorkulman

After some debugging I found some interesting things

0.3.2

  • install vie webOS dev manager
  • elevate via homebrew channel updater
  • reboot via homebrew channel
  • start the app, green button is working

ares-inspect youtube.leanback.v4 -d tv shows this in web console

Screenshot 2024-04-02 at 12 44 22

If I repeat all those steps with 0.3.3 the green button is not working and ares-inspect youtube.leanback.v4 -d tv shows something a bit different in web console

Screenshot 2024-04-02 at 12 47 31

This looks like maybe some JavaScript in 0.3.3 is not being parsed properly so the adblocking does not load?

igorkulman avatar Apr 02 '24 10:04 igorkulman

@igorkulman

So 0.3.2 is working? What changed?

Let's move this to webosbrew/youtube-webos#151.

throwaway96 avatar Apr 02 '24 11:04 throwaway96

So 0.3.2 is working? What changed?

Yes, 0.3.2 works now for me. As for what changed .... no idea to be honest. I was randomly trying many things like reboots, reinstalls, launching the homebrew channel update up and doing reelevate etc .. I guess some if this helped at some point.

igorkulman avatar Apr 02 '24 13:04 igorkulman

Is anyone able to assist with the certificate issue? It came back again.PXL_20240403_211939904.MP.jpg

AntonFaer avatar Apr 03 '24 21:04 AntonFaer

I am having this issue as well. I am unable to use the dev-manager as I am using Mac M1. Guess my last resort is to use the CLI then?

fergardi avatar Apr 13 '24 11:04 fergardi

how exactly do I connect to ssh? I'm quite a noob at ssh, it would be like this: ssh [email protected] or do I need to pass more arguments?

Heus-Sueh avatar Apr 13 '24 15:04 Heus-Sueh

If anyone knows or has a step-by-step manual on how to install the YouTube add free app from homebrew please share this info. Thanks

AntonFaer avatar Apr 13 '24 16:04 AntonFaer

I use ConnectBot with my android phone to connect to the TV via SSH (enable SSH on the homebrew channel) (you don't need to use Connectbot, any SSH client should work)

Hostname is root@TVs IP address. for example for me it's [email protected] Password is alpine

When connected use first this line:

curl -k -L -o /tmp/app.ipk 'https://github.com/webosbrew/youtube-webos/releases/download/v0.3.3/youtube.leanback.v4_0.3.3_all.ipk'

Click enter

and then this line

luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'

Click enter

At least that's the steps for me. I use a OLED C9.

1basti1 avatar Apr 13 '24 16:04 1basti1

I use ConnectBot with my android phone to connect to the TV via SSH (enable SSH on the homebrew channel)

Hostname is root@TVs IP address. for example for me it's [email protected] Password is alpine

When connected use first this line:

curl -k -L -o /tmp/app.ipk 'https://github.com/webosbrew/youtube-webos/releases/download/v0.3.3/youtube.leanback.v4_0.3.3_all.ipk'

Click enter

and then this line

luna-send-pub -w 10000 -i 'luna://com.webos.appInstallService/dev/install' '{"id":"com.ares.defaultName","ipkUrl":"/tmp/app.ipk","subscribe":true}'

Click enter

At least that's the steps for me. I use a OLED C9.

I had termux installed with the ssh package so I didn't even need this connect bot, thank you very much for your help.

Heus-Sueh avatar Apr 13 '24 18:04 Heus-Sueh

@1basti1 Thank you very much. This manual worked! However Ad-free YouTube after installation acts like a standard YouTube app, it shows ads frequently. Is there settin I need to enable? LG OLED65C7P

AntonFaer avatar Apr 14 '24 15:04 AntonFaer