"Could not establish trust relationship for the SSL/TLS secure channel" 从 Azure 逻辑应用调用 Api 管理时
"Could not establish trust relationship for the SSL/TLS secure channel" when calling Api Management from Azure Logic App
我有一个 Azure 逻辑应用程序,我通过设计器在其中添加了一个调用 Azure Api 管理 (APIM) 操作的操作。如前所述,我使用了 Logic App Designer,它指导我完成了选择 APIM 操作的过程。
现在,当执行逻辑应用程序时,我在尝试调用 APIM 操作时收到以下错误:
BadRequest. Http request failed with status code 'TrustFailure' and
status message: 'The underlying connection was closed: Could not
establish trust relationship for the SSL/TLS secure channel.'.
有人知道为什么会这样吗?我有点卡在这里...
这可能是一个错误,因为在您的 APIM 环境中使用了带有 SSL 证书的自定义域名。我们已经看到逻辑应用程序在这方面失败了。
我认为逻辑应用解析为 "original/internal" url,但证书与此不匹配(因为它已连接到您的自定义域)
我就此与 Microsoft(Azure 支持)联系并了解到以下内容。引用:
I further talked to the product team and actually there is a
limitation in the API Management action. The current API Management
action in logic app cannot handle custom domain. The team will look
into supporting it in future.
For now, the suggested workaround is to use Http+Swagger action
instead. Then you will be able to update the URI by yourself.
只是为了说明这一点:如果您尝试从 Azure 逻辑应用程序调用 Api 管理操作,这适用。例如,如果您有一个 Web 应用程序并想调用 APIM 操作,那么自定义域就可以正常工作。
我有一个 Azure 逻辑应用程序,我通过设计器在其中添加了一个调用 Azure Api 管理 (APIM) 操作的操作。如前所述,我使用了 Logic App Designer,它指导我完成了选择 APIM 操作的过程。
现在,当执行逻辑应用程序时,我在尝试调用 APIM 操作时收到以下错误:
BadRequest. Http request failed with status code 'TrustFailure' and status message: 'The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.'.
有人知道为什么会这样吗?我有点卡在这里...
这可能是一个错误,因为在您的 APIM 环境中使用了带有 SSL 证书的自定义域名。我们已经看到逻辑应用程序在这方面失败了。
我认为逻辑应用解析为 "original/internal" url,但证书与此不匹配(因为它已连接到您的自定义域)
我就此与 Microsoft(Azure 支持)联系并了解到以下内容。引用:
I further talked to the product team and actually there is a limitation in the API Management action. The current API Management action in logic app cannot handle custom domain. The team will look into supporting it in future.
For now, the suggested workaround is to use Http+Swagger action instead. Then you will be able to update the URI by yourself.
只是为了说明这一点:如果您尝试从 Azure 逻辑应用程序调用 Api 管理操作,这适用。例如,如果您有一个 Web 应用程序并想调用 APIM 操作,那么自定义域就可以正常工作。