Skip to content

Commit

Permalink
Backport fe78c0f1911c9fdc1d30e23847d102748dfa2063
Browse files Browse the repository at this point in the history
  • Loading branch information
amosshi committed Aug 9, 2024
1 parent fd4ce63 commit 39ef0cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private void onCertificate(ServerHandshakeContext shc,
ClientAuthType.CLIENT_AUTH_REQUESTED) {
// unexpected or require client authentication
throw shc.conContext.fatal(Alert.BAD_CERTIFICATE,
"Empty server certificate chain");
"Empty client certificate chain");
} else {
return;
}
Expand All @@ -399,7 +399,7 @@ private void onCertificate(ServerHandshakeContext shc,
}
} catch (CertificateException ce) {
throw shc.conContext.fatal(Alert.BAD_CERTIFICATE,
"Failed to parse server certificates", ce);
"Failed to parse client certificates", ce);
}

checkClientCerts(shc, x509Certs);
Expand Down Expand Up @@ -1216,7 +1216,7 @@ private static X509Certificate[] checkClientCerts(
}
} catch (CertificateException ce) {
throw shc.conContext.fatal(Alert.BAD_CERTIFICATE,
"Failed to parse server certificates", ce);
"Failed to parse client certificates", ce);
}

// find out the types of client authentication used
Expand Down

0 comments on commit 39ef0cd

Please sign in to comment.