diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 308f9208a..688a0cee6 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -180,7 +180,8 @@ int MAIN(int argc, char **argv) args++; if (!strcmp(*args, "NONE")) cert_pbe = -1; - cert_pbe=OBJ_txt2nid(*args); + else + cert_pbe=OBJ_txt2nid(*args); if(cert_pbe == NID_undef) { BIO_printf(bio_err, "Unknown PBE algorithm %s\n", *args);