summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-06-02 11:00:39 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-06-02 11:00:39 +0200
commit44e0b380ab42e72219e4da1d0e2213e8059168e7 (patch)
tree43ddc8be29bc5b63e27adc5bf225a82bfb3db2e7 /src
parent5d0e6706358132e7cd7c8c9904c7399a2f5b5044 (diff)
downloadgnutls-44e0b380ab42e72219e4da1d0e2213e8059168e7.tar.gz
certtool: print the signing time when available
Diffstat (limited to 'src')
-rw-r--r--src/certtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/certtool.c b/src/certtool.c
index 5b866c8e30..67c1b8e08b 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -2847,6 +2847,9 @@ void verify_pkcs7(common_info_st * cinfo, const char *purpose)
print_dn("\tSigner's issuer DN", &info.issuer_dn);
print_raw("\tSigner's serial", &info.signer_serial);
print_raw("\tSigner's issuer key ID", &info.issuer_keyid);
+ if (info.signing_time != -1)
+ fprintf(stderr, "\tSigning time: %s", ctime(&info.signing_time));
+
fprintf(stderr, "\tSignature Algorithm: %s\n", gnutls_sign_get_name(info.algo));
gnutls_pkcs7_signature_info_deinit(&info);