我有
.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 支持的文件格式的正确文章。