-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, 7 April 2021 22:36, senrabdet--- via Openvpn-users 
<openvpn-users@lists.sourceforge.net> wrote:

> Hi All:
>
> Hoping to get an overview of how to pipe passwords in for "./easyrsa 
> set-rsa-pass" in a bash script for openvpn.
>
> I am using  Easy-RSA 3 (windows 10, OpenSSL 1.1.1j  16 Feb 2021).  I think 
> something in this version has changed when using "./easyrsa set-rsa-pass" and 
> piping in the pw from a file.
>
> It appears maybe that I need to set an env for:
>
> -   `EASYRSA_PASSIN` (CLI: `--passin`) - allows to specify a source for 
> password using any openssl password options like pass:1234 or env:var
> -   `EASYRSA_PASSOUT` (CLI: `--passout`) - allows to specify a source for 
> password using any openssl password options like pass:1234 or env:var
>
> But whether I do or not in the terminal, when I try something like "./easyrsa 
> set-rsa-pass servername --passout filename" I get 
>
> Ignoring unknown command option: '--passout'
>
> Ignoring unknown command option: 'passfile'
>
> Am guessing this is a problem with my syntax or how I'm setting env variables 
> or maybe this command references setting env variables in a file?

Your syntax is incorrect, at least.

Incorrect syntax:
"./easyrsa set-rsa-pass servername --passout filename"

Correct syntax:
"./easyrsa --passout=filename set-rsa-pass servername"

Options which are prefaced by `--` come before the command.

You may also find this useful:
https://github.com/TinCanTech/easy-tls
And if you decide to test it then I am happy to answer questions.

Regards
R
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJgehP6ACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec
9muQuJ0nzAf/QpNUD4/zG6nDGCpNmWzhJtj210bY00o1wTaCArs1VxFCuVlF
Xyv9SPsJgxOfDFor8urWSwiAyrcsTCZ88lWIlm7eFrUfvs65zpYG+pSHVHjS
5QBJzPKv+cjufEWavMULkLa5psTmWjcyQxBtPYmPLBg+/d3/FHu3z+1fxcxN
VHR5y+KJMZ9HF+x96sbdO+DmYL6QmYcZi6RxKTY2SAnLu1fSZuVE3OTaC1AO
tn3ACyZ4JLP3N16FUr8NbJf2OBh/wWWt24/jOSJzxL6EsGFum8aM1ZNlstTi
ufg/3nZookr51KRFQKasQDS4fKXqG/nD8v4vfcPEW2F5BkvsbDxXtA==
=8K4F
-----END PGP SIGNATURE-----

Attachment: publickey - tincantech@protonmail.com - 0x09BC3D44.asc
Description: application/pgp-keys

Attachment: publickey - tincantech@protonmail.com - 0x09BC3D44.asc.sig
Description: PGP signature

_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to