ssl - Cloudify 与 Openstack :SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

标签 ssl https openstack cloudify

我想在我公司的 Openstack 中使用 Cloudify 3.1。

不幸的是,我遇到了 keystone 认证失败的问题。 当我看到日志时,它说,“SSL3_GET_SERVER_CERTIFICATE:证书验证失败”

我认为是 HTTPS 导致失败。我看到下面的 curl 。

curl -i  'https://identity.example.com/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "xxxx", "passwordCredentials": {"username": "xxxx", "password": "xxxxx"}}}'

HTTP/1.0 200 Connection Established
Proxy-agent: Apache

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

如何在不使用 -k--insecure 的情况下使 curl 成功?

或者如果有人有过使用 openstack 的经验,那么 KEYSTONE 在安装 Cloudify 时使用 HTTPS?

最佳答案

在 Cloudify 3.1 中无法使用带有不安全 SSL 证书的 Openstack 服务。但是,在 Cloudify 3.2 中,可以直接传递 --insecure(或 ca_cert)标志以供 Openstack 客户端使用。

您可以在此处阅读此功能的文档: http://getcloudify.org/guide/3.2/plugin-openstack.html#openstack-configuration

因此,例如,要使用带有不安全证书的 Nova 服务,您的 Openstack 配置可能如下所示:

openstack_config:
  ...
  custom_configuration:
    nova_client:
      insecure: true

希望这对您有所帮助。

关于ssl - Cloudify 与 Openstack :SSL3_GET_SERVER_CERTIFICATE:certificate verify failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29135484/

相关文章:

mysql - 升级到 Ubuntu 20.04 后无法再连接到 RDS MySQL (rails)

Python Uvicorn——获取SSL证书信息

ssl - openssl心脏出血漏洞

ssl - 如何压缩HTTPS流量?

Firefox 表示证书不受信任,即使证书链良好

android - HttpHostConnectException : Connection refused Android

openstack - openstack实例运行时间长了会不会变慢

docker - OpenStack 和 Docker

android - 在 Android 2.3.3 上实现 TLS 1.2

openstack - 如何使用 OpenStack Blade 服务器设置基础架构