Skip to content

Use SSL certs from Mozilla #746

Closed
Closed

Description

@JakubVanek

It is necessary to resolve #728. All openjdk-ev3 builds are going to fail within a week since two days ago the cacerts file was removed from the openjdk-build repository: adoptium/temurin-build@9cb3ddc. The solutions are still the same as outlined in ev3dev/ev3dev#1437 (comment).

I would therefore recommend:

Activity

  1. JakubVanek commented on Nov 27, 2020

    @JakubVanek
    ContributorAuthor
  2. JakubVanek commented on Nov 27, 2020

    @JakubVanek
    ContributorAuthor

    Apart of Mozilla, what other alternatives exist?

    There are also the stock OpenJDK cacerts. However, this is also what AdoptOpenJDK is leaving. AdoptOpenJDK seems to be switching to Mozilla's certs (please see adoptium/temurin-build@9cb3ddc). I don't know other CA certificate programs and as such I don't feel qualified to discuss this.

    These were described may times by me (e.g. ev3dev/ev3dev#1437 (comment) and related threads in this repository). Only the bottom two PRs directly relate to what SSL certs are used. The top two PRs fix an related, but not the same issue (broken CA certs in JRI, #728) and as such I have labelled one of these "unrelated" PRs preferred by me as "not necessary" in the summary above.

    Is it possible to evolve the cacerts in the future?

    It depends on which mechanism is intended for this. This does not force the use of Mozilla's certs forever, just a different CACERTFILE has to be provided in config.sh (https://github.com/ev3dev-lang-java/openjdk-ev3/pull/62/files#diff-e52229475913ead2a19b9c4be787d753170d054136228f98c3e427452e7bc2ca). If this means for building multiple JDK packages with different cacerts inside, then I do not see much value in that at all. A customized cacerts file (e.g. from different vendor) can always be distributed separately and installed by users by simply replacing the cacerts keystore in the JDK directory.

    @jabrena

  3. jabrena commented on Nov 27, 2020

    @jabrena
    Member

    What is the solution adopted by AdoptOpenJDK?
    adoptium/temurin-build@9cb3ddc

  4. jabrena commented on Nov 27, 2020

    @jabrena
    Member

    Oki, in that case, go ahead Mozilla cacerts :)

    But not merge the debpkg-tarpkg cacerts unification PR: ev3dev-lang-java/openjdk-ev3#61 (not necesssary)
    It is necessary to continue with the technical discussion.

  5. JakubVanek commented on Nov 27, 2020

    @JakubVanek
    ContributorAuthor

    But not merge the debpkg-tarpkg cacerts unification PR: ev3dev-lang-java/openjdk-ev3#61 (not necesssary)
    It is necessary to continue with the technical discussion.

    Yes, I agree, from this point of view it affects a different part of the project and as such it should be handled separately.

  6. JakubVanek commented on Nov 27, 2020

    @JakubVanek
    ContributorAuthor

    @jabrena Minimized pull request is now available: ev3dev-lang-java/openjdk-ev3#73

    For added transparency I decided to reuse the AdoptOpenJDK code where there was overlap.

  7. jabrena commented on Nov 27, 2020

    @jabrena
    Member

    Running all pipelines now:
    https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/

    For JDK14, it is necessary to not be ea version

  8. JakubVanek commented on Nov 27, 2020

    @JakubVanek
    ContributorAuthor

    For JDK14, it is necessary to not be ea version

    Currently EA is only in the job label, the build system uses (link) the latest general availability release from the JDK-Updates repository as do other released versions.

  9. JakubVanek commented on Nov 28, 2020

    @JakubVanek
    ContributorAuthor

    Issue fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions