Fix alert type for empty server certificate
@@ -4745,7 +4745,7 @@ static TlsAuthentication receiveServerCertificate(TlsClientContext clientContext
if (serverCertificate.isEmpty())
{
- throw new TlsFatalAlert(AlertDescription.bad_certificate);
+ throw new TlsFatalAlert(AlertDescription.decode_error);
}
securityParameters.peerCertificate = serverCertificate;
