Spanish ssl Certificate

francisco duran

Member
Licensed User
Longtime User
Hi friends, need your help.

I have a b4j application and it works fine for me in http mode, if I try to configure it in https mode I follow the steps in https://www.b4x.com/android/forum/threads/b4j-server-requesting-and-installing- ssl-certificate.55194/ doesn't work for me.

I have to work it on a bluehost VPS. Does anyone have a step-by-step tutorial that I have to do that is different from the one I sent you (this is to be done on windows)

Thank you so much
 

francisco duran

Member
Licensed User
Longtime User
Hola, esto es lo que me sale

levjsbmy@server.lev.jsb.mybluehost.me [recmap]# java -jar Recosfa.jar
2023-02-20 13:53:25.318:INFO::main: Logging initialized @173ms to org.eclipse.jetty.util.log.StdErrLog
/home/levjsbmy/public_html/recmap
2023-02-20 13:53:25.570:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_362-b08
2023-02-20 13:53:25.647:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0
2023-02-20 13:53:25.648:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults
2023-02-20 13:53:25.650:INFO:eek:ejs.session:main: node0 Scavenging every 600000ms
2023-02-20 13:53:25.689:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@4cf777e8{/,file:///home/levjsbmy/public_html/recmap/www/,AVAILABLE}
2023-02-20 13:53:25.715:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@1fa297b6{HTTP/1.1,[http/1.1]}{0.0.0.0:10001}
2023-02-20 13:53:25.747:INFO:eek:ejus.SslContextFactory:main: x509=X509@a67c67e(recosfa.keystore,h=[lev.jsb.mybluehost.me, www.lev.jsb.mybluehost.me],w=[]) for SslContextFactory@3327bd23[provider=null,keyStore=file:///home/levjsbmy/public_html/recmap/www/certs/lev.jsb.mybluehost.me.jks,trustStore=null]
2023-02-20 13:53:25.747:INFO:eek:ejus.SslContextFactory:main: x509=X509@4e1d422d(mykey,h=[lev.jsb.mybluehost.me, www.lev.jsb.mybluehost.me],w=[]) for SslContextFactory@3327bd23[provider=null,keyStore=file:///home/levjsbmy/public_html/recmap/www/certs/lev.jsb.mybluehost.me.jks,trustStore=null]
2023-02-20 13:53:25.873:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@6737fd8f{SSL,[ssl, http/1.1]}{0.0.0.0:10002}
main._appstart (java line: 53)
java.io.IOException: Cannot write log directory /home/levjsbmy/public_html/recmap/logs
at org.eclipse.jetty.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:258)
at org.eclipse.jetty.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:184)
at org.eclipse.jetty.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:145)
at org.eclipse.jetty.server.NCSARequestLog.doStart(NCSARequestLog.java:228)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.server.Server.start(Server.java:419)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:386)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:220)
at b4j.example.main._appstart(main.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
at b4j.example.main.main(main.java:28)

main.main (java line: 28)
java.lang.RuntimeException: java.io.IOException: Cannot write log directory /home/levjsbmy/public_html/recmap/logs
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:138)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
at b4j.example.main.main(main.java:28)
Caused by: java.io.IOException: Cannot write log directory /home/levjsbmy/public_html/recmap/logs
at org.eclipse.jetty.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:258)
at org.eclipse.jetty.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:184)
at org.eclipse.jetty.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:145)
at org.eclipse.jetty.server.NCSARequestLog.doStart(NCSARequestLog.java:228)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.server.Server.start(Server.java:419)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:386)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:220)
at b4j.example.main._appstart(main.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
 
Upvote 0

francisco duran

Member
Licensed User
Longtime User
Hola, ya le di permisos, ahora sale esto

^Clevjsbmy@server.lev.jsb.mybluehost.me [recmap]# java -jar Recosfa.jar
2023-02-20 14:00:07.039:INFO::main: Logging initialized @159ms to org.eclipse.jetty.util.log.StdErrLog
/home/levjsbmy/public_html/recmap
2023-02-20 14:00:07.313:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_362-b08
2023-02-20 14:00:07.389:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0
2023-02-20 14:00:07.390:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults
2023-02-20 14:00:07.393:INFO:eek:ejs.session:main: node0 Scavenging every 600000ms
2023-02-20 14:00:07.428:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@4cf777e8{/,file:///home/levjsbmy/public_html/recmap/www/,AVAILABLE}
2023-02-20 14:00:07.434:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /home/levjsbmy/public_html/recmap/logs/b4j-2023_02_20.request.log
2023-02-20 14:00:07.457:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@198a837b{HTTP/1.1,[http/1.1]}{0.0.0.0:10001}
2023-02-20 14:00:07.489:INFO:eek:ejus.SslContextFactory:main: x509=X509@a67c67e(recosfa.keystore,h=[lev.jsb.mybluehost.me, www.lev.jsb.mybluehost.me],w=[]) for SslContextFactory@3327bd23[provider=null,keyStore=file:///home/levjsbmy/public_html/recmap/www/certs/lev.jsb.mybluehost.me.jks,trustStore=null]
2023-02-20 14:00:07.490:INFO:eek:ejus.SslContextFactory:main: x509=X509@4e1d422d(mykey,h=[lev.jsb.mybluehost.me, www.lev.jsb.mybluehost.me],w=[]) for SslContextFactory@3327bd23[provider=null,keyStore=file:///home/levjsbmy/public_html/recmap/www/certs/lev.jsb.mybluehost.me.jks,trustStore=null]
2023-02-20 14:00:07.624:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@6737fd8f{SSL,[ssl, http/1.1]}{0.0.0.0:10002}
2023-02-20 14:00:07.625:INFO:eek:ejs.Server:main: Started @749ms
Connected

Sigue saliendo el mismo erro (ERR_SSL_PROTOCOL_ERROR)
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Upvote 0

francisco duran

Member
Licensed User
Longtime User
Hola, tienes razon del certificado, cualquier cosa lo cambio de nuevo cuando se solucione.

Cuando trato de entrar desde chorme me sale ERR_SSL_PROTOCOL_ERROR

Intento colocarlo en el 443 y me sale error java.net.SocketException: Permission denied
 
Upvote 0

francisco duran

Member
Licensed User
Longtime User
Hola, intente con sudo y no hizo nada diferente.

Podrías explicarme un poco mas el otro problema, cual es cual de los certificados.

Gracias
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Que tal Francisco, me temo que no tengo mas compentarios respecto a tu certificado. esty seguro que solo debe faltar un paso sencilo.
Yo hice ese proceso hace unos años y logre que funcionara. lo hice con let's encrypt.

Si quieres contactame por PM y comparteme tu certificado a ver si pudo hacer algunas pruebas con el.
Por lo pronto si quieres mas ayuda de otros compañeros del foro te recomiendo que abras la pregunta de nuevo en otro post
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
Solo quiero hacer un comentario:

Si su subdominio (https://lev.jsb.mybluehost.me) ya tiene un certificado, y usted quiere agregar otro a Jserver (Jetty) que escucha el puerto 10002.
No será el problema de colisión de certificados??



1677079364960.png
 
Upvote 0
Top