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

This commit is contained in:
Dr. Stephen Henson 2011-09-23 21:48:50 +00:00
parent e8f31f80d1
commit 1fe83b4afe

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;
}