From 08746ca1790746044c06ca05171b752ff1b7d023 Mon Sep 17 00:00:00 2001 From: Daniel Iancu Date: Wed, 9 Sep 2020 14:13:20 +0300 Subject: [PATCH] Fix: build_ca() fails for rsa keys This fixes an argument error I made in commit 1e98ba808c9c90629595827773a66b59f8c9b927, sorry I have not tested RSA keys as I only use ED. The argument is -passout for all openssl versions (tested on LibreSSL 2.8.3 and OpenSSL 1.1.1d). --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 65a38ef..9987a99 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -670,7 +670,7 @@ current CA keypair. If you intended to start a new CA, run init-pki first." if [ "ed" = "$EASYRSA_ALGO" ]; then crypto_opts="$crypto_opts -pass file:$out_key_pass_tmp" else - crypto_opts="$crypto_opts -passin file:$out_key_pass_tmp" + crypto_opts="$crypto_opts -passout file:$out_key_pass_tmp" fi fi fi