0

Keystore + HTTPS + NAS Synology + External

Jamyz 7 years ago updated 7 years ago 2

Hi !!!

I have Ubooquity on NAS Synology 1511. Ubooquity 2.1.0 is installed on /var/packages/Ubooquity and this is my file ubooquity.conf,


"start on started httpd-user
stop on runlevel [06]

exec /var/packages/Java8/target/j2sdk-image/bin/java -jar -Xmx1024m /var/packages/Ubooquity/Ubooquity.jar --remoteadmin * --workdir "/volume1/Comics/Ubooquity""


I have access on local network in port 2202 and 2203/admin.


I dont have access from internet and the ports on the router are open.

With the synology, when i put the internet ip:2202 or ip:2203/admin i have automaticly https added.

I create a keystore.jks in /volume1/Comics/Ubooquity/certs/keystore.jks and add this path in admin menu with the password when i create the jks file. But dont work. What is wrong ????

I have the follow in log


0170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Running with the following parameters - headless: true, libraryport: -1, adminport: -1, remoteadmin: true, host: null, debug: false, execdir: /volume1/web/Ubooquity

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - #############################

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - #     Starting Ubooquity    #

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - #############################

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Java version: 1.8.0_121

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Java vendor: Oracle Corporation

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Max heap size available: 494 MB

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - OS name: Linux

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - OS version: 3.10.102

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - OS architecture: amd64

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Loading local version info

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Ubooquity 2.1.0 built on 2017-06-18 at 17:14

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Creating application folders

20170818 18:35:48 [main] INFO  com.ubooquity.Ubooquity - Loading preferences

20170818 18:35:50 [main] INFO  org.eclipse.jetty.util.log - Logging initialized @5725ms to org.eclipse.jetty.util.log.Slf4jLog

20170818 18:35:50 [main] INFO  com.ubooquity.b - Starting internal server...

20170818 18:35:50 [main] INFO  com.ubooquity.b - Reverse proxy prefix is not activated

20170818 18:35:50 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Scanning books directories

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Books folder content cache populated

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Scanning comics directories

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Comics folder content cache populated

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Comics statistics: [total: 0, added or updated: 0, removed: 0]

20170818 18:35:51 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Books statistics: [total: 0, added or updated: 0, removed: 0]

20170818 18:35:51 [main] INFO  com.ubooquity.d.e - HTTPS activated

20170818 18:35:51 [main] INFO  org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208

20170818 18:35:51 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@6f01b95f{/,null,AVAILABLE,@admin}

20170818 18:35:51 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@4007f65e{/,null,AVAILABLE,@library}

20170818 18:35:51 [main] INFO  o.e.jetty.util.ssl.SslContextFactory - x509=X509@17bffc17(nas.jamyz.com,h=[nas.jamyz.com],w=[]) for SslContextFactory@6e535154(file:///volume1/web/Ubooquity/certs/ubooquity.jks,null)

20170818 18:35:52 [main] INFO  o.e.jetty.server.AbstractConnector - Started library@1a5b6f42{SSL,[ssl, http/1.1]}{0.0.0.0:2202}

20170818 18:35:52 [main] INFO  o.e.jetty.server.AbstractConnector - Started admin@5038d0b5{SSL,[ssl, http/1.1]}{0.0.0.0:2203}

20170818 18:35:52 [main] INFO  org.eclipse.jetty.server.Server - Started @6942ms

20170818 18:35:52 [main] INFO  com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin)

Tyep Q then ENTER to exit

20170818 18:35:53 [Timer-0] INFO  com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website

20170818 18:35:53 [Timer-0] INFO  com.ubooquity.Ubooquity - Latest version available: 2.1.0 - Current version: 2.1.0





WHEN I TRY WITH HTTPS





20170818 18:36:02 [qtp936653983-30] WARN  o.e.j.util.thread.QueuedThreadPool - 

java.lang.ExceptionInInitializerError: null

at sun.security.ssl.HelloExtensions.<init>(HelloExtensions.java:82) ~[na:1.8.0_121]

at sun.security.ssl.HandshakeMessage$ClientHello.<init>(HandshakeMessage.java:245) ~[na:1.8.0_121]

at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:220) ~[na:1.8.0_121]

at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) ~[na:1.8.0_121]

at sun.security.ssl.Handshaker$1.run(Handshaker.java:966) ~[na:1.8.0_121]

at sun.security.ssl.Handshaker$1.run(Handshaker.java:963) ~[na:1.8.0_121]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_121]

at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1416) ~[na:1.8.0_121]

at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:726) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.server.HttpConnection.fillRequestBuffer(HttpConnection.java:322) ~[jetty-server-9.4.0.v20161208.jar.1512231327251237409.tmp:9.4.0.v20161208]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:231) ~[jetty-server-9.4.0.v20161208.jar.1512231327251237409.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:261) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:150) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) ~[jetty-io-9.4.0.v20161208.jar.476945117410281959.tmp:9.4.0.v20161208]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) ~[jetty-util-9.4.0.v20161208.jar.4717673157582942350.tmp:9.4.0.v20161208]

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) ~[jetty-util-9.4.0.v20161208.jar.4717673157582942350.tmp:9.4.0.v20161208]

at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]

Caused by: java.lang.IllegalArgumentException: System property jdk.tls.namedGroups(null) contains no supported elliptic curves

at sun.security.ssl.SupportedEllipticCurvesExtension.<clinit>(SupportedEllipticCurvesExtension.java:154) ~[na:1.8.0_121]

... 20 common frames omitted


With HTTP



So ????? Help !!!!!!

I found something,

I try with docker linuxserver-ubooquity, he use java 1.8.0_131.

But with Synology Java8 package, java version is 1.8.0_121.


Maybe is the lastest old with Ubooquity 2.1 for HTTPS and Keystore........