summaryrefslogtreecommitdiffstats
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r--apps/pkcs12.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 1432d2b930..2c4e11a410 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -596,7 +596,8 @@ int pkcs12_main(int argc, char **argv)
key_pbe, cert_pbe, iter, -1, keytype);
if (p12 == NULL) {
- ERR_print_errors(bio_err);
+ BIO_printf(bio_err, "Error creating PKCS12 structure for %s\n",
+ outfile);
goto export_end;
}
@@ -625,6 +626,7 @@ int pkcs12_main(int argc, char **argv)
sk_X509_pop_free(untrusted_certs, X509_free);
X509_free(ee_cert);
+ ERR_print_errors(bio_err);
goto end;
}