兔子MQ错误:"ssl_options.keyfile invalid, file does not exist or cannot be read by the node"



我正试图通过Docker Compose:将SSL添加到RabbitMQ部署中

# rabbitmq.conf
ssl_options.certfile     = /container/path/to/certfile.crt
ssl_options.keyfile      = /container/path/to/keyfile.key
# docker-compose.yml
rabbitmq:
image: rabbitmq:3.10.7-management
...
volumes:
- /host/path/to/certfile.crt:/container/path/to/certfile.crt
- /host/path/to/keyfile.crt:/container/path/to/keyfile.key
- ...
...

然而,当旋转容器时,我得到错误:

ssl_options.keyfile invalid, file does not exist or cannot be read by the node

我仔细检查了卷安装是否正常,keyfile是否确实在那里。

结果是一个权限问题。通过在主机上运行解决:

chmod 664 /host/path/to/certfile.crt
chmod 664 /host/path/to/keyfile.crt

相关内容

最新更新