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;
}
sk_X509_pop_free(untrusted_certs, X509_free);
X509_free(ee_cert);
+ ERR_print_errors(bio_err);
goto end;
}