]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/pkcs12.c
Minor cleanup of error output for various apps
[thirdparty/openssl.git] / apps / pkcs12.c
index 1432d2b9308c09ee092b47822a77e3a88449245a..2c4e11a4102d692fc5d6ef1e095ac5673850ffea 100644 (file)
@@ -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;
 
     }