Исключение «Ошибка аутентификации или дешифрования» при подключении к службе push-уведомлений Apple - PullRequest
0 голосов
/ 29 декабря 2011

При подключении к APNS я получаю ошибки «Ошибка аутентификации или дешифрования». У меня есть простое консольное приложение в C #, которое пытается подключиться к gateway.sandbox.push.apple.com исключение:

Unhandled Exception: System.IO.IOException: The authentication or decryption has failed. --->     Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

Я также получаю выше исключение при соединении с certmgr:

certmgr -ssl ssl://gateway.sandbox.push.apple.com:2195

Я вручную импортировал корневые сертификаты Enrtust в хранилище Trust, но это не помогло.

OSX 10.7, Mono 2.10.8

...