代码之家  ›  专栏  ›  技术社区  ›  MIDE11

检查haproxy在运行时使用哪个证书的方法?

  •  0
  • MIDE11  · 技术社区  · 7 年前

     bind *:443 ssl crt /usr/local/etc/haproxy/ssl/mycertificate.pem /usr/local/etc/haproxy/ssl/net.pem
    

    我更改了ssl证书,并希望确保haproxy使用新证书。有什么办法查一下吗?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Michael - sqlbot    7 年前

    在命令(shell)提示下,所有这些都集中在一行上:

    true | 
    openssl s_client -connect example.com:443 -servername example.com -showcerts |
    openssl x509 -text -noout
    

    你会看到的 关于证书,在这里,包括不在有效期之前和之后。