Make it possible to load keys from stdin, and restore that
[openssl.git] / apps / pkcs12.c
index e345cf14899a01d0b39df79a69e9c109c1b9b139..73550d1801540f73925e5c9a2bced9c357c732fa 100644 (file)
@@ -427,7 +427,7 @@ int MAIN(int argc, char **argv)
        CRYPTO_push_info("process -export_cert");
        CRYPTO_push_info("reading private key");
 #endif
-       key = load_key(bio_err, keyname ? keyname : infile, FORMAT_PEM,
+       key = load_key(bio_err, keyname ? keyname : infile, FORMAT_PEM, 1,
                passin, e, "private key");
        if (!key) {
                goto export_end;