]> git.ipfire.org Git - thirdparty/openssl.git/commit
s_client: Show cert algorithms & validity period
authorMarc <34656315+MarcT512@users.noreply.github.com>
Sat, 4 Jan 2020 15:27:17 +0000 (15:27 +0000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 19 May 2020 08:38:00 +0000 (11:38 +0300)
commit2f84d2a1f1653674f6885a42efd2f648f8372491
tree8637b6dae80fbf3aa6b23dbdab1cb2557d847648
parente9e7b5df865c0bcd0a99d8146ec05378892a36e1
s_client: Show cert algorithms & validity period

Add certificate validity period (v) and public key & signature algorithms (a) to the "Certificate Chain" output.

Eg:
Certificate chain
 0 s:C = US, ST = California, L = Mountain View, O = Google LLC, CN = www.google.com
   i:C = US, O = Google Trust Services, CN = GTS CA 1O1
   a:PKEY: id-ecPublicKey, 256 (bit); sigalg: RSA-SHA256
   v:NotBefore: Dec  3 14:49:26 2019 GMT; NotAfter: Feb 25 14:49:26 2020 GMT
 1 s:C = US, O = Google Trust Services, CN = GTS CA 1O1
   i:OU = GlobalSign Root CA - R2, O = GlobalSign, CN = GlobalSign
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Jun 15 00:00:42 2017 GMT; NotAfter: Dec 15 00:00:42 2021 GMT

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10757)
apps/s_client.c