我一直在尝试将我的 LetsEncrypt 生成的证书安装到我的 rabbitmq 服务器中,但没有成功。
为了在不必解决权限问题的情况下进行测试,我复制了 pem 文件
/etc/letsencrypt/live/<domain>/
Run Code Online (Sandbox Code Playgroud)
到我的主目录。我还将 cacert.pem 文件从我在以下位置找到的位置复制到我的主目录:
/home/<user>/.local/share/letsencrypt/lib/python2.7/site-packages/requests/cacert.pem
Run Code Online (Sandbox Code Playgroud)
我决定首先尝试通过编辑 rabbitmq.config 来在管理插件之上安装证书以添加
{rabbitmq_management,
[%% Pre-Load schema definitions from the following JSON file. See
%% http://www.rabbitmq.com/management.html#load-definitions
%%
%% {load_definitions, "/path/to/schema.json"},
%% Log all requests to the management HTTP API to a file.
%%
%% {http_log_dir, "/path/to/access.log"},
%% Change the port on which the HTTP listener listens,
%% specifying an interface for the web server to bind to.
%% Also set the listener to use SSL and provide …
Run Code Online (Sandbox Code Playgroud)