Geçersiz bir sertifikaya sahip bir SignalR sunucusuna bağlanmayı deniyorum. Eğer sertifika doğrulama davranışını değiştirmek için izin bir ServerCertificateValidationCallback
temsilci olan bir WebRequestHandler
ile inşa edebilirC# signalr istemcisindeki https sertifika uyarılarını nasıl yok sayabilirim?
System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.WebException : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
----> System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.
Normal Net HttpClient
olarak: Beklenildiği aşağıdaki hatayı alıyorum. SignalR HttpClient
'un bunlardan hiçbiri yok gibi görünüyor.
Bu işe yarıyor, teşekkürler. Global, harika değil ama bunu bir test montajında kullanıyorum, bu yüzden yeterince iyi. – Dan