Когда я запускаю их оба в Windows, все в порядке. Но когда я запускаю их оба на своем Mac, я получаю ошибку RemoteCertificateNameMismatch.
Исключение:
Код: Выделить всё
Connecting to 127.0.0.1 on port 5001
Remote certificate was not recognized as a valid certificate: RemoteCertificateNameMismatch
Unable to perform authentication against server: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.
Connection failed: System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at [a few more lines of my app code...]
...
Чего мне не хватает? Что здесь Mac делает по-другому, что я не учитываю?
Если это поможет, приложения «Executor» (сервер) и «TradeClient» (клиент) находятся здесь. : https://github.com/connamara/quickfixn/ ... r/Examples
(Я знаю, что SO предпочитает встроенный контекст ссылкам, но я не знаю что актуально. Я пересмотрю этот вопрос с учетом соответствующего контекста, как только узнаю, каким может быть этот контекст.)
Подробнее здесь: https://stackoverflow.com/questions/787 ... ac-but-wor