-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Issues after 8u282 -> 8u292 update: "unrecognized algorithm name: PBEWithSHA1AndDESede" #941
Comments
Hi, we have just hit the same problem. OpenJdk is from here https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jre_x64_linux_8u292b10.tar.gz We have a reproducer that seems to indicate, that the problem is caused by a race condition because it sometimes works and sometimes it doesn't.
We are pretty sure it is caused by a problem that was fixed for Java9 and is still unfixed for Java8: |
We were able to reproduce our issue without bouncycastle being involved at all (not even lying unused in the classpath). |
We have filed a new bug here https://bugreport.java.com/bugreport/ which oracle is currently reviewing :-/ Their internal review ID is 9070059. |
I am having the same problem. It seems that As a workarround, I call |
Hi, looks like we got an official bug-id from oracle for this one: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266261 @anorimaki your workaround does not work in our case (where no bouncycastle is involved at all) also sun.security.x509.AlgorithmId is not an official stable API I suppose? |
@hofmandl1 true, it is not an official API. |
@hofmandl1 you can fix your issue by editing your java.security file and configuring a stronger algorithm for PKCS#12 and the SUN Provider. This is happening in sun.security.pkcs12.PKCS12KeyStore |
. |
I've a workaround like @lauredogit suggested, but In general it supposed to be But in my case it was a Gradle unit test, so I've used following to pass java system properties:
|
setting Many thanks guys! |
I think this related to https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8266290 |
Unfortunately with any PBES2 algorithm a JDK generated keystore becomes unreadable by openssl. |
JDK 8u301 has been released: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html Release notes: The fix for this is supposed to be in there. |
I'm not entirely sure if this is a BC issue or something with 8u292 but here goes:
After bumping the Java version to
8u292
our services (vert.x based) failed to start with the following message:From what I could tell this happened while setting up the
pem
cert files for the HTTPS server.Services are using
bcprov-jdk15on:168
and we were doingSecurity.addProvider
to add BC.I was able to confirm that:
BC
as a provider, just by it being in the classpath the above error occursBC
is inserted aboveJSSE
provider then the problem goes away1.56
the issue no longer happened (from1.57
up to1.68
has the same issue)Zulu 8.54.0.21-CA-linux64
) and musl (Zulu 8.54.0.21-CA-linux-musl-x64
) variant. As mentioned all version leading up to 8u282 had no such issue.Another (might be unrelated) issue happened when
BC
was added before theSUN
provider (pos 1). While using postgresql jdbc driver to connect to postgres using TLS, the driver would "hang" while switching to an SSL socket taking as much as 45s to connect (it would eventually succeed). WhenBC
is added after theSUN
provider then the switch happens in under 1s.Like I mentioned in the beginning it's a bit hard tell whether this is a
BC
issue or one (or more) issues with vertx/postgresql or even some issue with the Java update... so I though I'd posted here first.The text was updated successfully, but these errors were encountered: