FAQ  •  Register  •  Login

[SOLVED] Media Browser SSL using Certbot

<<

austin_mini75

Serviio newbie

Posts: 4

Joined: Sat May 25, 2019 12:07 pm

Post Thu Oct 22, 2020 7:17 pm

[SOLVED] Media Browser SSL using Certbot

Hi im new here but have been using serviio for a very long time. I have it installed on ubuntu 19xx and have recently decided to make media browser available over the web securly (ssl) every thing is working perfectly but would really like to use the cert bot issued certificates. I have gone over this guide:
http://www.aob.me.uk/index.php/ict-support/3-secure-remote-access-to-serviio-mediabrowser

but am getting stuck with this entry in the log file

  Code:
java.lang.RuntimeException: java.security.UnrecoverableKeyException: Cannot recover key
        at org.serviio.restlet.RestletServer.runServer(RestletServer.java:93)
        at org.serviio.MediaServer.main(MediaServer.java:130)
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
        at java.base/sun.security.provider.KeyProtector.recover(KeyProtector.java:304)
        at java.base/sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:144)
        at java.base/sun.security.util.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:90)
        at java.base/java.security.KeyStore.getKey(KeyStore.java:1057)
        at java.base/sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:145)
        at java.base/sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)
        at java.base/javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:271)
        at org.restlet.engine.ssl.DefaultSslContextFactory.createSslContext(DefaultSslContextFactory.java:332)
        at org.restlet.ext.simple.HttpsServerHelper.start(HttpsServerHelper.java:98)
        at org.restlet.Server.start(Server.java:588)
        at org.restlet.Component.startServers(Component.java:637)
        at org.restlet.Component.start(Component.java:562)
        at org.serviio.restlet.RestletServer.startComponent(RestletServer.java:180)
        at org.serviio.restlet.RestletServer.runServer(RestletServer.java:80)


Any help would really be appreciated thx


Final UPDATE this sorted it out for me:
https://gist.github.com/ibel001/c7946aaa8462f611d1f7
Last edited by austin_mini75 on Sun Oct 25, 2020 4:08 pm, edited 2 times in total.
<<

austin_mini75

Serviio newbie

Posts: 4

Joined: Sat May 25, 2019 12:07 pm

Post Thu Oct 22, 2020 9:51 pm

Re: Media Browser SSL using Certbot

update:

I have placed serviio behind a reverse proxy using nginx which does seem to work but i cant log in now:

unknown server error (405) undefined

basically i configured:
  Code:
/etc/nginx/conf.d/nodeapp.conf


as follows:
  Code:
server {

  server_name mydomain;

  location / {
      proxy_pass serviio_ip:23424/mediabrowser/;
  }


it is giving me this issue without ssl


so i noticed serviio is giving me the following log entry:
  Code:
[ServiioStatusService] Returning error code to the REST layer: Method Not Allowed (405) - The method specified in the request is not allowed for the resource identified by the request URI

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 35 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.