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
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#41
2022-07-14, 01:32 PM
(2022-07-13, 08:36 PM)mvallevand Wrote: 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

Many thanks Martin 
I have placed the file and the setting and this works.

I am sorry I hijacked the thread but it looked to me the right thread to place the problem from what I read (at some point discussion was diverted elsewhere but original issue was about setting up SSL forwarding and making use of it via Kodi and the addon so I thought it was relevant). Won't do it again.
Many thanks again for the assistance and understanding.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#42
2022-07-14, 01:44 PM
You can pretty much link any new thread to an old post somehow but that makes the forum hard for everyone and since no users bother writing the wiki documentation once they have it working so it's an ongoing annoyance for me. Glad it is working.

Note that I am in discussion with Kodi Team to see why the generic intermediate R3 LE cert I added is not in their default trusted file. It is also possible that you are creating the cert incorrectly.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#43
2022-07-14, 01:52 PM (This post was last modified: 2022-07-14, 01:53 PM by aderlopas.)
(2022-07-14, 01:44 PM)mvallevand Wrote: You can pretty much link any new thread to an old post somehow but that makes the forum hard for everyone and since no users bother writing the wiki documentation once they have it working so it's an ongoing annoyance for me. Glad it is working.

Note that I am in discussion with Kodi Team to see why the generic intermediate R3 LE cert I added is not in their default trusted file.  It is also possible that you are creating the cert incorrectly.

Martin
Many thanks Martin. I'll try and write up a wiki page on that, I owe you as much. I used Lets'Encrypt certbot to generate the certificate using the --certonly switch so it should be correct
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#44
2022-07-19, 11:52 AM
@aderlopas wnsipex from Team Kodi told me that your certbot configuration must be bad. Comparing your domain with forums.nextpvr.com https://www.ssllabs.com/ssltest/analyze....extpvr.com you can see a difference. Sub's cert includes the R3 intermediate cert which I added and yours does not.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#45
2022-07-19, 12:46 PM
(2022-07-19, 11:52 AM)mvallevand Wrote: @aderlopas wnsipex from Team Kodi told me that your certbot configuration must be bad.  Comparing your domain with forums.nextpvr.com https://www.ssllabs.com/ssltest/analyze....extpvr.com you can see a difference.  Sub's cert includes the R3 intermediate cert which I added and yours does not.

Martin

Hi Martin,

I deleted whole certbot folder, and installed the latest certbot version.
I run it with the the standalone option and generated new files.

I setup the new files on my Apache webserver.
I tried from a Kodi from my windows laptop without the additional advancedsettings you shared and it still gives out an error.
If I try to connect to my webserver to the nextpvr page I do so successfully, and when I display certificate trust chain it shows it correctly under R3. See uploaded picture below.
Is there a file or log I need to send for the Kodi team to check what is going on?


Attached Files Thumbnail(s)
   
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#46
2022-07-19, 12:53 PM
The browser works differently from curl you can see here https://www.ssllabs.com/ssltest/analyze....d.ddns.net your cert doesn't include the ISRG Root X1 cert and curl doesn't try to find it. My change added the R3 cert as trusted which you do include.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#47
2022-07-19, 02:10 PM
(2022-07-19, 12:53 PM)mvallevand Wrote: The browser works differently from curl you can see here  https://www.ssllabs.com/ssltest/analyze....d.ddns.net  your cert doesn't include the ISRG Root X1 cert and curl doesn't try to find it.  My change added the R3 cert as trusted which you do include.

Martin

Hi Martin,

It may be the case that I haven't setup all needed certificates in Apache.

I haven't defined the below directives:

#  Server Certificate Chain:
#  Point SSLCertificateChainFile at a file containing the
#  concatenation of PEM encoded CA certificates which form the
#  certificate chain for the server certificate. Alternatively
#  the referenced file can be the same as SSLCertificateFile
#  when the CA certificates are directly appended to the server
#  certificate for convenience.
#SSLCertificateChainFile "${SRVROOT}/conf/cert.pem"
#SSLCertificateChainFile "${SRVROOT}/conf/isrgrootx1.pem"

#  Certificate Authority (CA):
#  Set the CA certificate verification path where to find CA
#  certificates for client authentication or alternatively one
#  huge file containing all of them (file must be PEM encoded)
#  Note: Inside SSLCACertificatePath you need hash symlinks
#        to point to the certificate files. Use the provided
#        Makefile to update the hash symlinks after changes.
#SSLCACertificatePath "${SRVROOT}/conf/ssl.crt"
#SSLCACertificatePath "${SRVROOT}/conf/isrgrootx1.pem"
#SSLCACertificateFile "${SRVROOT}/conf/ssl.crt/ca-bundle.crt"

#  Certificate Revocation Lists (CRL):
#  Set the CA revocation path where to find CA CRLs for client
#  authentication or alternatively one huge file containing all
#  of them (file must be PEM encoded).
#  The CRL checking mode needs to be configured explicitly
#  through SSLCARevocationCheck (defaults to "none" otherwise).
#  Note: Inside SSLCARevocationPath you need hash symlinks
#        to point to the certificate files. Use the provided
#        Makefile to update the hash symlinks after changes.
#SSLCARevocationPath "${SRVROOT}/conf/ssl.crl"
#SSLCARevocationFile "${SRVROOT}/conf/ssl.crl/ca-bundle.crl"
#SSLCARevocationCheck chain


I tried to specify the isrgrootx1.pem certificate but Apache was not coming up complaining that the server name is not part of that certificate.
Do you know perhaps what needs to be specified in those directives or point me to any documentation that clarifies the same?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#48
2022-07-19, 02:18 PM
No sorry I don't know what to suggest.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#49
2022-07-19, 08:51 PM
(2022-07-19, 02:18 PM)mvallevand Wrote: No sorry I don't know what to suggest.

Martin

Hi Matin, 

I managed to bypass the error, by adding the below directive to Apache:

SSLCertificateChainFile "${SRVROOT}/conf/ssl/fullchain.pem"

Then I got another problem as Nextpvr was reporting general failure and http 400...

I then understood that since I had setup port 80 (http) to be redirected to port 443 (SSL) I should not be using port 443 directly but rather configure the addon to use port 80 instead.
With this, I don't even need to setup the hostprotocol to https as http will be redirected to https automatically by the web server.

Now it works correctly, I believe I now have a configuration I can present in a wiki page :-)

Thanks a lot for your time and valuable assistance!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#50
2022-07-19, 09:48 PM
Your cert still has problems because your are including an expired cert but I guess that gets past the curl error. (I still see one here though)

By using port http/80 your password will be sent in the clear as you aren't even using SSL

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kodi Channel not updating aTF6i 2 356 2025-03-09, 12:26 AM
Last Post: aTF6i
  EPG not loading in Kodi? membball84 3 329 2025-02-13, 01:24 AM
Last Post: membball84
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 730 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi 22 (Piers) and library thumbnails mvallevand 8 1,087 2025-01-15, 06:32 PM
Last Post: mvallevand
  Suggestions for the KODI Add-on Escape7 38 8,735 2024-12-20, 05:31 AM
Last Post: sub
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 925 2024-10-23, 02:11 PM
Last Post: mvallevand
  Kodi PVR Client Not Working trongod 8 1,352 2024-09-11, 10:20 PM
Last Post: trongod
  NextPVR Client for CoreELEC ChrisI 3 523 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,914 2024-08-06, 10:00 PM
Last Post: sub
  Kodi-V5 WiFi Problem? kerryball 0 359 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