X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fspkac.c;h=4ce53e36c9022820432338aa525719efafe22bd0;hb=b7910992d83bffebbc68ac7c1406e2fbf91e2304;hp=fa5dc248c88734b2addc97d2a27421125cd072f5;hpb=1372965e2ebed49c810978e00be50006f1d7219a;p=oweals%2Fopenssl.git diff --git a/apps/spkac.c b/apps/spkac.c index fa5dc248c8..4ce53e36c9 100644 --- a/apps/spkac.c +++ b/apps/spkac.c @@ -98,6 +98,9 @@ int MAIN(int argc, char **argv) if (!bio_err) bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); + if (!load_config(bio_err, NULL)) + goto end; + prog=argv[0]; argc--; argv++; @@ -183,7 +186,7 @@ bad: if(keyfile) { pkey = load_key(bio_err, strcmp(keyfile, "-") ? keyfile : NULL, - FORMAT_PEM, passin, e, "private key"); + FORMAT_PEM, 1, passin, e, "private key"); if(!pkey) { goto end; }