use keyformat for -x509toreq, don't hard code PEM

This commit is contained in:
Dr. Stephen Henson 2011-09-23 21:48:59 +00:00
parent c11ada6c99
commit 872e3fd502

View file

@ -987,7 +987,7 @@ bad:
else
{
pk=load_key(bio_err,
keyfile, FORMAT_PEM, 0,
keyfile, keyformat, 0,
passin, e, "request key");
if (pk == NULL) goto end;
}