B4J Question Including jdk.crypto.ec without B4JPackager

MindTorque

Member
Licensed User
Longtime User
Is there a convenient means of including jdk.crypto.ec without making a package?
Like when we simply #include an additional .jar in the IDE...

Thanks :)
 

MindTorque

Member
Licensed User
Longtime User
Well... perhaps not quite.

When I compile the app in the IDE & run it, secure connections don't want to work
due to expecting the elliptic curve crypto to be available and it's not - the most
recent versions of web browsers requiring it to call the connection secure.
When I run the SSL server test (from https://www.ssllabs.com/) it finds all in
order apart from the elliptic curve being missing.
 
Upvote 0

MindTorque

Member
Licensed User
Longtime User
Hrm... Well, the log doesn't show any error messages, but here it is:

2021-10-20 09:26:58.234:INFO::main: Logging initialized @154ms to org.eclipse.jetty.util.log.StdErrLog
File.DirApp = D:\B4J_Projects\ServerHelloWorld\Objects
2021-10-20 09:26:58.347:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 11.0.1+13
2021-10-20 09:26:58.377:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0
2021-10-20 09:26:58.377:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults
2021-10-20 09:26:58.378:INFO:eek:ejs.session:main: node0 Scavenging every 600000ms
2021-10-20 09:26:58.382:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@6356695f{/,file:///D:/B4J_Projects/ServerHelloWorld/Objects/www/,AVAILABLE}
2021-10-20 09:26:58.385:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened D:\B4J_Projects\ServerHelloWorld\Objects\logs\b4j-2021_10_20.request.log
2021-10-20 09:26:58.528:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@6c6cb480{HTTP/1.1,[http/1.1]}{0.0.0.0:80}
2021-10-20 09:26:58.651:INFO:eek:ejus.SslContextFactory:main: x509=X509@2118cddf(mindtorque.net (certcloud rsa tls ca),h=[mindtorque.net],w=[]) for SslContextFactory@17a7f733[provider=null,keyStore=file:///D:/B4J_Projects/ServerHelloWorld/Objects/jetty.keystore,trustStore=null]
2021-10-20 09:26:58.726:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@156b88f5{SSL,[ssl, http/1.1]}{0.0.0.0:443}
2021-10-20 09:26:58.726:INFO:eek:ejs.Server:main: Started @651ms
Server started

Not exactly revealing (at least not to me...), that's why I'd like to try including what isn't supposed to be required and see if it makes a difference.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
that's why I'd like to try including what isn't supposed to be required and see if it makes a difference
All modules are included unless you build a package. There is no such thing: include jdk.crypto.ec without the packager.

With OpenJDK 11, jServer supports TLS 1.3 with TLS_AES_256_GCM_SHA384. This is a modern and secure cipher.
 
Upvote 0
Top