diff --git a/lib/ssl/src/tls_server_connection_1_3.erl b/lib/ssl/src/tls_server_connection_1_3.erl index f00cf12d7472..2dc48ce81430 100644 --- a/lib/ssl/src/tls_server_connection_1_3.erl +++ b/lib/ssl/src/tls_server_connection_1_3.erl @@ -500,7 +500,10 @@ do_handle_client_hello(#client_hello{cipher_suites = ClientCiphers, end catch {Ref, #alert{} = Alert} -> - Alert + Alert; + error:Reason:ST -> + ?SSL_LOG(debug, handshake_error, [{reason, Reason}, {stacktrace, ST}]), + ?ALERT_REC(?ILLEGAL_PARAMETER, illegal_parameter_in_client_hello) end. send_hello_flight({start_handshake, PSK0}, @@ -580,7 +583,8 @@ send_hello_flight({start_handshake, PSK0}, catch {Ref, #alert{} = Alert} -> Alert; - error:badarg -> + error:Reason:ST -> + ?SSL_LOG(debug, crypto_error, [{reason, Reason}, {stacktrace, ST}]), ?ALERT_REC(?ILLEGAL_PARAMETER, illegal_parameter_to_compute_key) end.