2021-01-09 01:58

需要忽略proxy目标地址的https证书错误(standalone模式);need to bypass the certificate error of the proxy target URL (standalone mode)

Need to turn the proxy target host certificate verification off. 需要关闭代理(proxy)目标的https证书验证.

I can find the turn off switch of proxy target host certificate verification. My scenario is in testing, and my testing env doesn't have any valid certificate. 目前我没找到moco stand alone 模式下关闭proxy目标地址的证书验证的方法,我是将moco用于测试的。而为了避免不必要的安全隐患未对测试环境签发有效的证书,测试环境的证书均不带任何有效的域名、IP信息。

I need the feature to turn the proxy target host certificate verification off and accept all invalid https certificate.


NOTE: proxy(代理)指这个功能: { "request" : { "text" : "foo" }, "response" : { "proxy" : "" } }


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • weixin_39575648 weixin_39575648 4月前


    点赞 评论 复制链接分享
  • weixin_39624774 weixin_39624774 4月前

    Please run latest Moco build to verify if it works for your scenario.

    git clone https://github.com/dreamhead/moco.git
    cd moco
    ./gradlew build
    java -jar moco moco-runner/build/libs/moco-runner-0.11.1-SNAPSHOT-standalone.jar http -p 12306 -c <your-configuration-file>
    点赞 评论 复制链接分享
  • weixin_39619893 weixin_39619893 4月前

    I have similar case to solve and I tested current master snapshot but it still no works:

    08 lis 2017 12:19:25 [nioEventLoopGroup-3-2] ERROR Failed to load remote and try to failover javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    点赞 评论 复制链接分享
  • weixin_39624774 weixin_39624774 4月前

    Could you please provide your complete test case?

    点赞 评论 复制链接分享