【问题标题】:HAProxy 1.5-dev19 Unable to load SSL certificateHAProxy 1.5-dev19 无法加载 SSL 证书
【发布时间】:2013-10-14 14:44:22
【问题描述】:

我已经安装了 HAPRoxy 1.5-dev19,我正在尝试使用 SSL 进行绑定。

我在 /etc/ssl/certs 密钥中生成了 openssl 证书,并验证它们在那里并且看起来不错,并更新了 haproxy.cfg 如下:

openssl req -nodes -x509 -newkey rsa:2048 -keyout /etc/ssl/certs/private.key -out /etc/ssl/certs/cert.pem -days 2000

前端 XRE 绑定 *:9045 ssl crt /etc/ssl/certs/private.key

但我仍然得到:

解析 [/etc/haproxy/haproxy.cfg:48] : 'bind :443' : 无法从 PEM 文件 '/etc/ssl/certs/private.key' 加载 SSL 证书。

代理“haproxyLoopback”:没有为 [/etc/haproxy/haproxy.cfg:48] 处的绑定“:443”指定 SSL 证书(使用“crt”)。

感谢您的帮助, 非常感谢, 查理

【问题讨论】:

    标签: ssl haproxy


    【解决方案1】:

    您指向了错误的文件。应该是这样的:

    frontend XRE bind *:9045 ssl crt /etc/ssl/certs/cert.pem
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-12
      • 1970-01-01
      • 1970-01-01
      • 2013-01-18
      相关资源
      最近更新 更多