使用带有 SSL 证书的 Mule 中的 http 连接器发出 HTTPS GET 请求

问题描述 投票:0回答:0

我有

.crt
.pem
键,可用于制作
HTTPS
GET
API请求。

我们不能直接在 mulesoft 中使用这些证书来发出 https API 请求。

据我所知,它支持

Trust store configuration
Key store configuration
JCEKS
JKS
PKCS12
格式

我试过使用下面的命令

openssl x509 -outform der -in certificate.private.pem -out certificate.der
keytool -import -alias your-alias -keystore cacerts -file certificate.der

运行下面提到的

openssl
命令后失败并出现以下错误

unable to load certificate
140706477451034:error:09A2F34C:PEM routines:CRYPTO_internal:no start line:/Library/BuildRoots/97f7341o-dq75-11ed-a4bc-863efbbaf86g/Library/Caches/Sources/libressl/libressl-3.3/crypto/pem/pem_lib.c:694:Expecting: TRUSTED CERTIFICATE

如何将我的密钥转换为这些特定格式以及如何在从 Mulesoft 的 Anypoint Studio 发出 https get 请求时使用它

我没有找到将 .CRT 和 .PEM 文件转换为 Mule 支持的文件格式的正确文章。

mulesoft mule4 anypoint-studio mule-esb anypoint-platform
© www.soinside.com 2019 - 2024. All rights reserved.