--skip-ssl-validation选项不能与云代工厂中的uaac一起使用

问题描述 投票:4回答:2

我在云代工厂中创建了一个uaac服务实例,并将其与我的一个应用程序相关联。现在,当我尝试将CLI定位到uaac实例时,我收到以下错误,

$ uaac target <uaac URL> 
failed to access <uaac URL>: Invalid SSL Cert for <uaac URL>/login. Use '--skip-ssl-validation' to continue with an insecure target

我根据消息添加了选项,

 $ uaac target <uaac URL> --skip-ssl-validation

但我又得到了同样的错误,

failed to access <uaac URL>: Invalid SSL Cert for <uaac URL>/login. Use '--skip-ssl-validation' to continue with an insecure target

我不确定为什么不考虑该选项,即使提到选项后我也会再次出现相同的错误。

ssl cloudfoundry cloudfoundry-uaa
2个回答
1
投票

在撰写本文时,看起来这是一个known issue

在github评论中,有人通过配置文件中的设置建议解决方法(默认情况下为~/.uaac.yml):

https://127.0.0.1:8580:
  skip_ssl_validation: true
  ca_cert: 

在8580当地的uaa。

这对uaac target命令只适用于我,但not命令显然是uaac token


1
投票

我的解决方案是在我的uaa Ip之前使用http前缀

uaac target http://10.81.4.236:8080
© www.soinside.com 2019 - 2024. All rights reserved.