证书未应用于API调用 [英] Certificate not getting applied to API call

查看:67
本文介绍了证书未应用于API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提供一个服务来获取文件并将其发送到Web API。

Have a service which picks up files and sends it to a web API.

现在,该服务可以在我们所有服务器上运行而不会出现问题。

Now the service runs on all of our servers without issues.

然而,在这个特定的客户服务器上,我们找到证书并将其附加到SOAP send然后将其发送到API,但他们的服务器说他们正在收到没有任何证书的请求。

However on this particular customers server we find the certificate and attach it to the SOAP send then send it to the API but their servers are saying they are getting requests without any certificates.

查看日志,它说证书已找到,附加并发布。但由于401而失败。

Looking at the logs it says certificate found, attaching it and publishing it. but failing due to a 401.

已安装的wireshark确实可以看到证书没有被发送。

Installed wireshark and can indeed see that the certificate is not being sent.

唯一不同的是它是服务器运行。

Only difference is the server it is running on.

任何帮助我指向正确方向的信息都将受到赞赏。

Any help pointing me in the right direction would be appreciated.

无论发生什么,都会发生。

Whatever happens, happens.

推荐答案

您好Super_Rookie,

欢迎来到MSDN论坛。

401错误是HTTP响应状态代码,表示客户端发送的请求无法通过身份验证。换句话说,请求的资源受到限制并需要身份验证,但客户端未能通过
提供任何身份验证。

我建议你 首先解决可能导致此错误的任何潜在客户端问题。


  1. check返回401错误的确切API URL,以确保它是您要请求的确切资源。 
  2. 清除相关和本地浏览器缓存。
  3. 检查证书是否有效。

BTW,因为我们的论坛主要讨论.NET Framework安装和服务问题,你的问题似乎与HTTP服务有关。因此,我建议您重定向相应的论坛以获得更专业的支持。

感谢您的时间。

最好的问候

可能


这篇关于证书未应用于API调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆