配置API管理以将客户端证书从传入请求转发到后端

编程入门 行业动态 更新时间:2024-10-28 04:19:21
本文介绍了配置API管理以将客户端证书从传入请求转发到后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到了无法解决自己的问题,因此将不胜感激.

I'm having problem which I cannot figure out myself so any help would be appreciated.

我正在尝试实现以下方案,其中客户端向Azure API管理发送包含客户端证书的请求.然后我需要从后端访问此证书,但是自从我收到403以来,该证书似乎已被删除 来自后端的回应.

I'm trying to achieve the following scenario where client sends request which includes client certificate to Azure API Management. Then I need to access this certificate from backend but it seems like the certificate gets removed in the way since I get 403 response from backend.

如果我直接将请求发送到包含客户端证书的后端,则可以正常运行.另外,如果我使用< authentication-certificate thumbprint ="****"从API Management加载客户端证书, />它工作得很好,后端接收 证书.

If I send request straight to backend with client certificate included it works perfectly. Also if I load client certificate from API Management using<authentication-certificate thumbprint="****" /> it works nicely and backend receives certificate.

所以我的问题是,有什么方法可以配置API Management来从传入请求中获取证书并将其传递给后端,就像从API Management加载证书时传递的方法一样?

So my question is that is there any way to configure API Management to grab the certificate from incoming request and pass it to backend like the same way it is passed when its loaded from API Management?

后端是Azure Web App,并且已设置"clientCertEnabled":true.

Backend is Azure Web App and setting"clientCertEnabled": true is configured.

-miko

推荐答案

您可以根据自己的情况参考此文档" 固定 使用客户端证书的后端服务 ".您还可以查看证书实体的先决条件,请参阅 此处 .

You may refer this document for your scenario "securing back-end services using client certificate". You may also look into the pre-requisites for the certificate entity, refer here.

----------------------------------- -------------------------------------------------- ----------

如果此答案有帮助,请单击标记为答案"或上投票".提供额外的 关于您的论坛体验的反馈,请单击 >此处 .

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.

更多推荐

配置API管理以将客户端证书从传入请求转发到后端

本文发布于:2023-11-15 09:25:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1593187.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:客户端   后端   证书   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!