WebSocketException: An error has occurred during a TLS handshakeFixed

Hello after latest automatic server restart my server started to be very loud so i checked and ram and cpu were running on 100% (this never happened) and the console started to spit out tons and tons of error messages (no changes during restart have been made) Does anyone have any tips what to do with it? Thanks

7/13/2022 1:33:49 AM|Fatal|WebSocket.connect|WebSocketSharp.WebSocketException: An error has occurred during a TLS handshake. ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Security.Interface.TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE
at Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) [0x00036] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Unity.UnityTlsContext.ProcessHandshake () [0x00082] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in <14e3453b740b4bd690e8d4e5a013a715>:0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Net.Security.AsyncProtocolRequest+<ProcessOperation>d__24.MoveNext () [0x000ff] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.AsyncProtocolRequest+<StartOperation>d__23.MoveNext () [0x0008b] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.MobileAuthenticatedStream+<ProcessAuthentication>d__47.MoveNext () [0x00254] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <fb001e01371b4adca20013e0ac763896>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <fb001e01371b4adca20013e0ac763896>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000d] in <14e3453b740b4bd690e8d4e5a013a715>:0
at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0
at WebSocketSharp.WebSocket.setClientStream () [0x000f6] in <271c58b7a8684db5a2c92be17a81f252>:0
--- End of inner exception stack trace ---
at WebSocketSharp.WebSocket.setClientStream () [0x00116] in <271c58b7a8684db5a2c92be17a81f252>:0
at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <271c58b7a8684db5a2c92be17a81f252>:0
at WebSocketSharp.WebSocket.connect () [0x0004f] in <271c58b7a8684db5a2c92be17a81f252>:0
[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1015, reason: An exception has occurred while connecting.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

My server crashed earlier and then wouldn't boot, flooding my console with this:

07/12/2022 22:31:39|Fatal|WebSocket.connect|WebSocketSharp.WebSocketException: An error has occurred during a TLS handshake. ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Security.Interface.TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE

                            at Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) [0x00036] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at Mono.Unity.UnityTlsContext.ProcessHandshake () [0x00082] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus)
                            at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at Mono.Net.Security.AsyncProtocolRequest+<ProcessOperation>d__24.MoveNext () [0x000ff] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                          --- End of stack trace from previous location where exception was thrown ---
                            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0 
                            at Mono.Net.Security.AsyncProtocolRequest+<StartOperation>d__23.MoveNext () [0x0008b] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                             --- End of inner exception stack trace ---
                            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0 
                            at Mono.Net.Security.MobileAuthenticatedStream+<ProcessAuthentication>d__47.MoveNext () [0x00254] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                             --- End of inner exception stack trace ---
                            at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <fb001e01371b4adca20013e0ac763896>:0 
                            at System.Threading.Tasks.Task.Wait () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0 
                            at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000d] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0 
                            at WebSocketSharp.WebSocket.setClientStream () [0x000f6] in <271c58b7a8684db5a2c92be17a81f252>:0 
                             --- End of inner exception stack trace ---
                            at WebSocketSharp.WebSocket.setClientStream () [0x00116] in <271c58b7a8684db5a2c92be17a81f252>:0 
                            at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <271c58b7a8684db5a2c92be17a81f252>:0 
                            at WebSocketSharp.WebSocket.connect () [0x0004f] in <271c58b7a8684db5a2c92be17a81f252>:0 
 
[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1015, reason: An exception has occurred while connecting. 

Currently back up and running without the discord extension (would like to get functionality back tho, I leverage this a lot)

7/13/2022 8:55:26 AM|Fatal|WebSocket.connect|WebSocketSharp.WebSocketException: An error has occurred during a TLS handshake. ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Security.Interface.TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE
at Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) [0x00036] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Unity.UnityTlsContext.ProcessHandshake () [0x00082] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in <14e3453b740b4bd690e8d4e5a013a715>:0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0
at Mono.Net.Security.AsyncProtocolRequest+<ProcessOperation>d__24.MoveNext () [0x000ff] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.AsyncProtocolRequest+<StartOperation>d__23.MoveNext () [0x0008b] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.MobileAuthenticatedStream+<ProcessAuthentication>d__47.MoveNext () [0x00254] in <14e3453b740b4bd690e8d4e5a013a715>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <fb001e01371b4adca20013e0ac763896>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <fb001e01371b4adca20013e0ac763896>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000d] in <14e3453b740b4bd690e8d4e5a013a715>:0
at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0
at WebSocketSharp.WebSocket.setClientStream () [0x000f6] in <271c58b7a8684db5a2c92be17a81f252>:0
--- End of inner exception stack trace ---
at WebSocketSharp.WebSocket.setClientStream () [0x00116] in <271c58b7a8684db5a2c92be17a81f252>:0
at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <271c58b7a8684db5a2c92be17a81f252>:0
at WebSocketSharp.WebSocket.connect () [0x0004f] in <271c58b7a8684db5a2c92be17a81f252>:0

@MJSU Posted a temp fix for the issue in Umod discord server.

Same issue here

It seems like the Discord Plugins or the Oxide.Discrod.dll can't connect to the Discord because it keeps trying to connect.
I solved this first by deleting all files and the .dll file from Discord. So the server starts up again.

7/13/2022 7:50:23 AM|Fatal|WebSocket.connect|WebSocketSharp.WebSocketException: An error has occurred during a TLS handshake. ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Security.Interface.TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE at Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) [0x00036] in <14e3453b740b4bd690e8d4e5a013a715>:0 at Mono.Unity.UnityTlsContext.ProcessHandshake () [0x00082] in <14e3453b740b4bd690e8d4e5a013a715>:0 at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in <14e3453b740b4bd690e8d4e5a013a715>:0 at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus) at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0 at Mono.Net.Security.AsyncProtocolRequest+d__24.MoveNext () [0x000ff] in <14e3453b740b4bd690e8d4e5a013a715>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in :0 at Mono.Net.Security.AsyncProtocolRequest+d__23.MoveNext () [0x0008b] in <14e3453b740b4bd690e8d4e5a013a715>:0 --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at Mono.Net.Security.MobileAuthenticatedStream+d__47.MoveNext () [0x00254] in <14e3453b740b4bd690e8d4e5a013a715>:0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in :0 at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in :0 at System.Threading.Tasks.Task.Wait () [0x00000] in :0 at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000d] in <14e3453b740b4bd690e8d4e5a013a715>:0 at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <14e3453b740b4bd690e8d4e5a013a715>:0 at WebSocketSharp.WebSocket.setClientStream () [0x000f6] in <271c58b7a8684db5a2c92be17a81f252>:0 --- End of inner exception stack trace --- at WebSocketSharp.WebSocket.setClientStream () [0x00116] in <271c58b7a8684db5a2c92be17a81f252>:0 at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <271c58b7a8684db5a2c92be17a81f252>:0 at WebSocketSharp.WebSocket.connect () [0x0004f] in <271c58b7a8684db5a2c92be17a81f252>:0
Locked automatically