diff options
author | 2018-10-19 03:12:42 +0000 | |
---|---|---|
committer | 2018-10-19 03:12:42 +0000 | |
commit | c53d11a70af97b7cfacbaaef093ea5a58e046c8e (patch) | |
tree | 7e93bd0065a78f74db3ca16c79b90d9048b0007e /usr.bin/ssh/ssh-keygen.c | |
parent | simplify BN_bin2bn() calls; no need to pre-declare the variable. (diff) | |
download | wireguard-openbsd-c53d11a70af97b7cfacbaaef093ea5a58e046c8e.tar.xz wireguard-openbsd-c53d11a70af97b7cfacbaaef093ea5a58e046c8e.zip |
when printing certificate contents "ssh-keygen -Lf /path/certificate",
include the algorithm that the CA used to sign the cert.
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 81d12cc7489..550f4661243 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.322 2018/09/14 04:17:44 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.323 2018/10/19 03:12:42 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1986,8 +1986,9 @@ print_cert(struct sshkey *key) printf(" Type: %s %s certificate\n", sshkey_ssh_name(key), sshkey_cert_type(key)); printf(" Public key: %s %s\n", sshkey_type(key), key_fp); - printf(" Signing CA: %s %s\n", - sshkey_type(key->cert->signature_key), ca_fp); + printf(" Signing CA: %s %s (using %s)\n", + sshkey_type(key->cert->signature_key), ca_fp, + key->cert->signature_type); printf(" Key ID: \"%s\"\n", key->cert->key_id); printf(" Serial: %llu\n", (unsigned long long)key->cert->serial); printf(" Valid: %s\n", valid); |