|
проблема с https-вебсервисом
|
|||
---|---|---|---|
#18+
здравствуйте. пытаюсь подключится к вебсервису https://allautoparts.ru/WEBService/SupportService.svc для установки сертификата использую следующий код: X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadOnly); X509Certificate2Collection col = store.Certificates.Find(X509FindType.FindBySerialNumber, "56 f3 dd f0 e2 e8 e5 80 4b 5d 31 16 4e 29 b7 2e", true); ru.allautoparts.AS2CSupport ss = new AS2CSupport(); ss.ClientCertificates.Add(col[0]) при вызове метода сервиса string test = ss.GetRequestIP(); получаю ошибку: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. что я делаю не так? ... |
|||
:
Нравится:
Не нравится:
|
|||
24.05.2011, 11:40 |
|
проблема с https-вебсервисом
|
|||
---|---|---|---|
#18+
проблему решил. помогла вот эта статья: http://blog.clauskonrad.net/2007/03/underlying-connection-was-closed-could.html ... |
|||
:
Нравится:
Не нравится:
|
|||
24.05.2011, 14:08 |
|
|
start [/forum/topic.php?fid=19&fpage=21&tid=1397444]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
50ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
2ms |
others: | 12ms |
total: | 136ms |
0 / 0 |