如何在HAproxy上申请csr证书?

How to apply a csr certi on HAproxy?

我从我的 CA 那里得到了一些证书,如下

1. something.csr
2. something.zip --> contains 2 .cert files.

我正在使用 HAProxy 并想应用它们。 Haproxy 已经使用了 .pem 证书,那么我如何 convert/combine 上面提到的证书来获得一个 .pem 文件?

something.csr & something.key连接到something.pem,这就是HAproxy理解证书的方式。

将以下后端添加到 haproxy.cfg
frontend https-port443 bind *:443 ssl crt /path/to/something.pem mode http

将以下内容合并到按以下顺序排序的单个 PEM 文件中:

  1. 私钥
  2. 您域的证书
  3. 中级证书
  4. 根证书