Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set password on command line #103

Closed
dtgilles opened this issue Jul 26, 2016 · 1 comment · Fixed by #242
Closed

set password on command line #103

dtgilles opened this issue Jul 26, 2016 · 1 comment · Fixed by #242

Comments

@dtgilles
Copy link

please have a look, if it would be OK for you to add password support on command line for some functions (set_pass and export-p12), below you can find a diff between your current version (master) and my patched one.

133a134
>         pass:secret-password - set password to given 'secret-password'
145a147
>         pass:secret-password - set password to given 'secret-password'
811a814
>       local pkcs_opts=
815a819
>                       pass:*) pkcs_opts="-passin pass:${1#*:} -passout pass:${1#*:}";;
821d824
<       local pkcs_opts=
889a893
>                       pass:*) crypto="-aes256 -passout pass:${1#*:}";;

Thanks in advance

@VVD
Copy link

VVD commented Nov 18, 2016

I'm using this patch ("dirty hack") for batch sign-req in a ca with password:
./easyrsa.real.new sign-req client "${USER}" batch "${CA_PASSWORD}"

--- easyrsa.real.orig        2016-07-28 18:31:39.135244000 +0300
+++ easyrsa.real.new       2016-11-18 02:53:08.254342812 +0300
@@ -572,6 +572,9 @@
        # Support batch by internal caller:
        [ "$3" = "batch" ] && local EASYRSA_BATCH=1

+       # Support password for ca:
+       [ -n "$4" ] && opts="$opts -passin pass:$4"
+
        verify_ca_init

        # Check argument sanity:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants