Skip to content

SSL support - #66

Closed
JakubVanek wants to merge 5 commits into
ev3dev-lang-java:masterfrom
JakubVanek:bugfix/ssl-support
Closed

JakubVanek wants to merge 5 commits into
ev3dev-lang-java:masterfrom
JakubVanek:bugfix/ssl-support

Conversation

@JakubVanek

Copy link
Copy Markdown
Contributor

incorporates #61 + #62

Related to ev3dev-lang-java/ev3dev-lang-java#728 (comment)

The problem is that ca-certificates-java relies on jri-N-ev3
for the java-command; however jri-N-ev3 also depends on
ca-certificates java.

The proper fix would be to specify a self-dependency
as outlined in adoptium/installer#105 (comment) .
This will probably somehow break the dependency cycle
so that jri-N-ev3 is installed first and only then
the ca-certificates-java package gets installed.

This is nice, but the installation failure damages the system cacerts
file and simple --reinstall is *not* enough to fix this,
instead AFAIK all java packages have to be uninstalled and
then reinstalled again.

Let's instead ship the cacerts that ship with other AdoptOpenJDK builds.
This will fix cacerts error from the start. If the user wants to use
ca-certificates-java, this actually makes it possible to do so -
they just need to install the package after jri-N-ev3 and then
symlink /usr/lib/jvm/jri-N-ev3/lib/security/cacerts to
/etc/ssl/certs/java/cacerts which is managed by ca-certificates-java.

Nothing is perfect, though. The potential issue with Adopt's
CA certificates is that they seem pretty old (~ 3 years).
It seems that this is going to change: adoptium/adoptium-support#13
This change will however impact the JDK build script and
not the packaging script.
Related to ev3dev-lang-java/ev3dev-lang-java#728 (comment)

This removes the use of the CA certificates bundled
in the AdoptOpenJDK repository. Instead the CA certificates
are generated before each build from the Mozilla's trust database.

This should ensure the most browser-like experience
which I'd expect users to expect.

Inspired by adoptium/adoptium-support#13 (comment)
@JakubVanek

Copy link
Copy Markdown
Contributor Author

wontfix

@JakubVanek JakubVanek closed this Aug 24, 2020
@JakubVanek
JakubVanek deleted the bugfix/ssl-support branch August 24, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant