]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/cli: reorder 'show ssl cert' output
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 25 Feb 2020 13:07:58 +0000 (14:07 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 25 Feb 2020 13:17:50 +0000 (14:17 +0100)
commita90e593a7aa644ff5f4f70f5df4efe1b2dd48cb7
tree5090bb9199d9e87ff389483f256c401afca4d982
parentbb7288a9f50483ae75c7fcf560dc5f2c824b773b
MINOR: ssl/cli: reorder 'show ssl cert' output

Reorder the 'show ssl cert' output so it's easier to see if the whole
chain is correct.

For a chain to be correct, an "Issuer" line must have the same
content as the next "Subject" line.

Example:

  Subject: /C=FR/ST=Paris/O=HAProxy Test Certificate/CN=test.haproxy.local
  Issuer: /C=FR/ST=Paris/O=HAProxy Test Intermediate CA 2/CN=ca2.haproxy.local
  Chain Subject: /C=FR/ST=Paris/O=HAProxy Test Intermediate CA 2/CN=ca2.haproxy.local
  Chain Issuer: /C=FR/ST=Paris/O=HAProxy Test Intermediate CA 1/CN=ca1.haproxy.local
  Chain Subject: /C=FR/ST=Paris/O=HAProxy Test Intermediate CA 1/CN=ca1.haproxy.local
  Chain Issuer: /C=FR/ST=Paris/O=HAProxy Test Root CA/CN=root.haproxy.local
src/ssl_sock.c