From 91edafe5317b4b3ed8febbfc3ed87b4d27298ae8 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sun, 9 May 2021 21:43:49 -0400 Subject: [PATCH] problem: unrecognized algorithm name PBEWithSHA1AndDESede for unit tests --- .github/workflows/test.yaml | 2 ++ build.gradle | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8bc88c5b..ce4827ba 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,11 +6,13 @@ on: branches: - master - release/* + - ci/* # on a pull request pull_request: branches: - master - release/* + - ci/* jobs: unit-test: diff --git a/build.gradle b/build.gradle index 17a30c6a..0c2d51ca 100644 --- a/build.gradle +++ b/build.gradle @@ -143,6 +143,21 @@ test { testLogging.showStandardStreams = false testLogging.exceptionFormat = 'full' finalizedBy jacocoTestReport + + // getting on CI: + // java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede + // at java.base/sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:700) + // at java.base/sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:597) + // at java.base/sun.security.util.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:111) + // at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1167) + // at io.netty.handler.ssl.SslContext.buildKeyStore(SslContext.java:1102) + // at io.netty.handler.ssl.ReferenceCountedOpenSslServerContext.newSessionContext(ReferenceCountedOpenSslServerContext.java:123) + // ---- + // see + // https://github.com/bcgit/bc-java/issues/941 + // https://bugs.openjdk.java.net/browse/JDK-8266279 + // + systemProperty "keystore.pkcs12.keyProtectionAlgorithm", "PBEWithHmacSHA256AndAES_256" } application {