NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 2 3 4 5 … 43 Next »
Reverse proxy - ssl - kodi client

 
  • 0 Vote(s) - 0 Average
Reverse proxy - ssl - kodi client
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#31
2021-12-07, 08:57 PM
There is no way via the Kodi addon to do that but if Kodi is properly inserting 8866 properly what if you simply use port 443

Martin
cdogg
Offline

Junior Member

Posts: 25
Threads: 4
Joined: Sep 2012
#32
2021-12-07, 09:11 PM
The reason the port being set, regardless of the number, is that it insert a colon into the url so something like "server/npvr/..." ends up looking like "server/npvr/:443 or 8866". The apache server doesn't know what to do with a url that has a : in it of course. I've tried to force the situation by editing settings.xml and setting it as "443/npvr/" which allows me to enable the addon, but when performing actions, it ignores the "443/npvr" and substitutes just "8866", dropping the "/npvr/" part. Hope I've explained that better. If the addon would allow me to enter not just numbers but also other characters, that would be perfect.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#33
2021-12-07, 09:23 PM
Ok I thought it would be at the end, your first post confused me. Given that I have no way for me to test this or of testing the NextPVR API redirects, I can consider this for Nexus with port 0 if you are willing to do the testing.

Martin
cdogg
Offline

Junior Member

Posts: 25
Threads: 4
Joined: Sep 2012
#34
2021-12-07, 09:36 PM
I've tried port 0 but it then puts ":0" into the url which of course is no good. Now if it worked that using port 0 took the port completely out of the equation then great! Totally willing to test. My brother is willing to try to compile the source into the necessary .dll, but I'm not sure where in the code I would need to edit to stop inputing the port number and colon into the url.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#35
2021-12-07, 09:45 PM
It certainly won't work now, it will need a code change. If your brother can compile it change this line

https://github.com/kodi-pvr/pvr.nextpvr/...gs.cpp#L41

to

Code:
strcpy(m_urlBase, m_hostname.c_str());

which will pass through the URL you type;

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#36
2022-07-13, 09:53 AM
Hi Martin
I have done a similar setup and still getting error with this, although service is reachable via https, result below:

https://aed.ddns.net:443/service?method=...evice=xbmc:

<rsp stat="ok">
<sid>6a83314d0f744889a56f309b774bfb81</sid>
<salt>dd8e75f5-9113-4f0e-8c8b-dc750a58c534</salt>
</rsp>

Error reported in Kodi log is the below:

AddOnLog: pvr.nextpvr: Creating NextPVR PVR-Client
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: Buffer created!
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: DummyBuffer created!
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: Buffer created!
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: RecordingBuffer created!
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: Buffer created!
2022-07-13 12:35:42.984 T:10501 INFO <general>: AddOnLog: pvr.nextpvr: DummyBuffer created!
2022-07-13 12:35:43.780 T:10501 ERROR <general>: CCurlFile::FillBuffer - Failed: SSL peer certificate or SSH remote key was not OK(60)
2022-07-13 12:35:43.780 T:10501 ERROR <general>: CCurlFile::Open failed with code 0 for https://aed.ddns.net:443/service?method=...evice=xbmc:

2022-07-13 12:35:43.780 T:10501 ERROR <general>: IAddonInstanceHandler::CreateInstance: pvr.nextpvr returned bad status "Permanent failure" during instance creation
2022-07-13 12:35:43.782 T:10501 ERROR <general>: UpdateAddons: Failed to create add-on NextPVR PVR Client, status = 5
2022-07-13 12:36:01.290 T:10399 INFO <general>: Loading skin file: SettingsCategory.xml, load type: KEEP_IN_MEMORY
2022-07-13 12:36:04.828 T:10399 INFO <general>: Log level changed to "TRACE"
2022-07-13 12:36:04.828 T:10399 INFO <general>: Enabled debug logging due to GUI setting. Level 2.
2022-07-13 12:36:04.830 T:10399 DEBUG <general>:
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#37
2022-07-13, 01:04 PM
First I believe the issue discussed in this thread is resolved by using port = 0 in configuration, I just never came back and updated this thread. No code change was required and Kodi strips out the port.

So you probably should look at the error "SSL peer certificate or SSH remote key was not OK." and check these step https://kodi.wiki/view/SSL_certificates The reason I didn't make https available in the GUI settings was because this configuration is not trivial.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#38
2022-07-13, 05:51 PM (This post was last modified: 2022-07-13, 05:55 PM by aderlopas.)
(2022-07-13, 01:04 PM)mvallevand Wrote: First I believe the issue discussed in this thread is resolved by using port = 0 in configuration, I just never came back and updated this thread.  No code change was required and Kodi strips out the port.

So you probably should look at the error "SSL peer certificate or SSH remote key was not OK."  and check these step https://kodi.wiki/view/SSL_certificates  The reason I didn't make https available in the GUI settings was because this configuration is not trivial.

Martin

Thanks Martin.
Given my certificate is issued by Letsencrypt and that the Kodi client is on Android (and I am not sure I can modify the pem file correctly) is there
Any way I can add the below to the URL?

To disable the check, add |verifypeer=false
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#39
2022-07-13, 06:18 PM
Given that it is "explicitly discouraged" I have no plans on supporting that and you are better off investigating how you might do this properly on Android. If you want to send my your pem file I can see if I can help.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,796
Threads: 954
Joined: May 2006
#40
2022-07-13, 08:36 PM
I added your pem file from the browser to the generic cacerts.pem file, copied it into Android profile with the Kodi file manager and then pointed to it with advancedsettings.xml  To get you going you can unzip this to USB or a share and copy them to your profile folder with Kodi File Manager

Code:
<advancedsettings>
  <network>
    <catrustfile>special://masterprofile/cacert.pem</catrustfile>
  </network>
</advancedsettings>

It connects but it fails on the PIN as expected.  You should see my info in your logs

You probably want to create and test cacert.pem on a filesystem based system to make your life easier. 

This is way I hate when users hijack threads.  The thread goes off topic and potentially resolved but who knows if someone can find this next time.

Martin


Attached Files
.zip   cacert.zip (Size: 122.8 KB / Downloads: 2)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 2 3 4 5 6 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kodi Channel not updating aTF6i 2 358 2025-03-09, 12:26 AM
Last Post: aTF6i
  EPG not loading in Kodi? membball84 3 331 2025-02-13, 01:24 AM
Last Post: membball84
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 743 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi 22 (Piers) and library thumbnails mvallevand 8 1,098 2025-01-15, 06:32 PM
Last Post: mvallevand
  Suggestions for the KODI Add-on Escape7 38 8,745 2024-12-20, 05:31 AM
Last Post: sub
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 928 2024-10-23, 02:11 PM
Last Post: mvallevand
  Kodi PVR Client Not Working trongod 8 1,356 2024-09-11, 10:20 PM
Last Post: trongod
  NextPVR Client for CoreELEC ChrisI 3 531 2024-09-07, 10:11 PM
Last Post: mvallevand
  Kodi 21.0 Omega/NextPVR 21.1.0 PVR & Live TV Group Manager bouilliabai 28 3,947 2024-08-06, 10:00 PM
Last Post: sub
  Kodi-V5 WiFi Problem? kerryball 0 364 2024-06-26, 06:49 AM
Last Post: kerryball

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode