Skip to content

Commit

Permalink
Query chooser instead of config for RSA private key
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaehren committed Jan 28, 2025
1 parent 55614bd commit de0e3b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected void prepareSerializedPublicKeyLength(T msg) {
public byte[] decryptPremasterSecret() {
BigInteger bigIntegerEncryptedPremasterSecret =
new BigInteger(1, msg.getPublicKey().getValue());
BigInteger serverPrivateKey = chooser.getServerX509Chooser().getConfig().getRsaPrivateKey();
BigInteger serverPrivateKey = chooser.getServerX509Chooser().getSubjectRsaPrivateKey();
if (chooser.getServerX509Chooser().getSubjectRsaModulus().equals(BigInteger.ZERO)) {
LOGGER.warn("RSA modulus is zero, returning new byte[0] as decryptedPremasterSecret");
return new byte[0];
Expand Down

0 comments on commit de0e3b8

Please sign in to comment.