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

This commit is contained in:
Dr. Stephen Henson 2011-09-23 21:48:34 +00:00
parent c2035bffe7
commit 1579e65604

View File

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