使用 Hoverfly 模拟 HTTPS API

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

我正在尝试在 Hoverfly 中模拟 HTTPS API 但出现以下错误

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

我尝试设置

localHoverflyConfig.disableTlsVerification();
但这也不起作用。

应用程序在

Docker Container
中运行,我正在使用
keytool

在 docker 文件中的 cacerts 中导入证书

找不到合适的 Java 文档。

java hoverfly
© www.soinside.com 2019 - 2024. All rights reserved.