我试图通过Docker将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实际上在那里。
发布于 2022-09-30 12:36:24
结果是一个权限问题。通过在主机中运行解决问题:
chmod 664 /host/path/to/certfile.crt
chmod 664 /host/path/to/keyfile.crthttps://stackoverflow.com/questions/73908885
复制相似问题