Opened 7 years ago

Closed 16 months ago

#819 closed Bug / Defect (moved)

Packaging into pkcs12 can not handle spaces in filenames

Reported by: jiquera Owned by:
Priority: major Milestone:
Component: easy-rsa Version: easyrsa-3.x
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

When using the export-p12 option in easy-rsa 3.x things go south when the file name of the CA.cert contains a space.

This is because of the following 2 lines in easyrsa (v3.0.1)

815: pkcs_opts="$pkcs_opts -certfile $crt_ca"
837/838: "$EASYRSA_OPENSSL" pkcs12 -in "$crt_in" -inkey "$key_in" -export -out "$pkcs_out" $pkcs_opts

the contents of $pkcs_opts is now seen as one single command line option which is not recognized and results in no error but the display of the usage of openssl.

I tried added quotes in many places but that didn't work. I think the proper way is to either use "eval" or add all the options in a list or something.

Change History (1)

comment:1 Changed 16 months ago by Eric Crist

Resolution: moved
Status: newclosed

Please reopen this in github if this is still an issue. Closing here.

Note: See TracTickets for help on using tickets.