Skip to content
Snippets Groups Projects
Commit 7b205d6c authored by Amos Shi's avatar Amos Shi
Browse files

8325022: Incorrect error message on client authentication

Backport-of: fe78c0f1911c9fdc1d30e23847d102748dfa2063
parent d90d0288
No related branches found
No related tags found
No related merge requests found
......@@ -388,7 +388,7 @@ final class CertificateMessage {
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;
}
......@@ -405,7 +405,7 @@ final class CertificateMessage {
}
} 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);
......@@ -1247,7 +1247,7 @@ final class CertificateMessage {
}
} 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment