Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade bouncycastle dependencies to 1.72 #169

Closed
wants to merge 1 commit into from

Conversation

wborn
Copy link

@wborn wborn commented Oct 12, 2022

Fixes #80
Succeeds #146

For release notes, see:

https://www.bouncycastle.org/releasenotes.html#r1rv72

Pull Request Checklist

Please confirm that you've done the following when opening a new pull request:

  • For fixes and other improvements, please reference the GitHub issue that your change addresses.
  • For fixes, optimizations and new features, please add an entry to the CHANGES.md file.
  • Run mvn compile before committing, so that the auto-code formatter will format your changes consistently with the rest of the project.

@wborn wborn force-pushed the upgrade-bouncycastle-deps branch from 8e4ccc1 to 8ec6ce6 Compare October 12, 2022 19:32
@wborn wborn changed the title Upgrade bouncycastle dependencies to 1.70 Upgrade bouncycastle dependencies to 1.72 Oct 12, 2022
@wborn
Copy link
Author

wborn commented Oct 12, 2022

As Java 8 is targeted:

HAP-Java/pom.xml

Lines 184 to 185 in 781311e

<source>1.8</source>
<target>1.8</target>

the "jdk18on" artifacts can be used. 🙂

@ccutrer
Copy link
Collaborator

ccutrer commented Oct 14, 2022

If I apply this, then the HomeKit add-on won't load in OpenHAB 3.4.0-SNAPSHOT (as of last night), citing Unresolved requirement: Import-Package: org.bouncycastle.tls; version="[1.72.0,2.0.0)". Is there a migration plan, or do all addons have to update to the new artifactid at the same time?

@wborn
Copy link
Author

wborn commented Oct 14, 2022

Thanks for having a look! Did you also build an add-on with the changes in openhab/openhab-addons#11104? Those changes are required for embedding bouncycastle 1.72 into the bundle.

@ccutrer
Copy link
Collaborator

ccutrer commented Oct 14, 2022

I didn't see that PR. I now tried it. I can install the bundle, but logging reports 2022-10-14 13:57:55.948 [WARN ] [.server.impl.connections.HttpSession] - Unrecognized request for /characteristics (which means it's using the unauthenticated servlet, instead of the authenticated one), and every accessory shows up as "No Response" on iOS.

@wborn
Copy link
Author

wborn commented Oct 29, 2022

That's unfortunate since I don't use HomeKit myself so I can't easily test or debug it. 🙁

Do you have an idea what goes wrong? Is there some kind of HomeKit client that can be used for testing?

It would be helpful if there were unit tests for testing the crypto logic which would then fail with the upgraded dependencies. Then I could look into fixing those test. 🙂

@wborn wborn closed this Nov 5, 2022
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.

Support Bouncycastle's BC-Prov 1.60
2 participants