My java 8 application is communicating with other system via rest, secured with TLS1.2.
Last 2 java patches (261, 271) has broken the connection, because they have added some backward compatibility with TLS1.3. During the handshake, it started using some newer signature scheme - rsa_pss_rsae_sha256
instead of, previously workingrsa_pkcs1_sha256
(named SHA256withRSA
in java8u251), which is not working because it's trying to reach my private key (during CertificateVerify
handhake step), which is protected by HSM, thus it's not available to read it.
I would like to disable this new signature scheme, because the older one is still sufficient and it worked on previous java patch and it's also used in a few other connections my application.
I have found this solution - https://bugs.openjdk.java.net/browse/JDK-8227445 but when I set this setting by direct signature scheme name rsa_pss_rsae_sha256
, it didn't work. Do you know what name should I pass there to disable this specific signature scheme (or all rsa_pss_*
signature schemes group)?