Opened 5 years ago

#819 new Bug / Defect

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:


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 (0)

Note: See TracTickets for help on using tickets.