我无法使用我的应用程序代码连接到 Amazon Keyspaces cqlsh
:
cqlsh cassandra.eu-west-2.amazonaws.com 9142 -u "xxxxxxxxxxxxxxx" -p "xxxxxxxxxxxxxxxxxxxxxx" --ssl
Connection error: ('Unable to connect to any servers', {'3.10.201.209': error(1, u"Tried connecting to [('3.10.201.209', 9142)]. Last error: [SSL] internal error (_ssl.c:727)")})
特别令人困惑的是我的设置在过去有效。
我的cqlshrc
:
[connection]
port = 9142
factory = cqlshlib.ssl.ssl_transport_factory
[ssl]
validate = true
certfile = /home/abc/.cassandra/AmazonRootCA1.pem
我像这样获取证书:
wget -c https://www.amazontrust.com/repository/AmazonRootCA1.pem
DNS似乎很好:
nslookup cassandra.eu-west-2.amazonaws.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: cassandra.eu-west-2.amazonaws.com
Address: 3.10.201.209
我最近从 18.04 升级到 Ubuntu 20.04,这可能会导致问题。
更新:是的,它可能更改了默认 SSL 协议