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

Allow use of paths with spaces on Windows #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattock
Copy link
Member

@mattock mattock commented May 16, 2017

The lack of quotes prevents placing easy-rsa into a directory which has spaces in its path, as reported by a user of ours.

These changes have not yet been tested at all, so consider this a discussion-only PR for now. Most of the changes should "just work", but there are a couple places where things could potentially break. I've added separate line comments in to these places.

Suggestions/improvements from people who have had to work with batch scripts are most welcome!

rem copy in a fresh serial file so we begin generating keys at index 01
copy serial.start %d%\serial.
copy serial.start "%d%\serial."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure what this line i supposed to do. Does it really just copy serial.start to serial.? What is the point of having the dot at the end of the filename?

rem test revocation
rem first concatinate ca cert with newly generated crl
copy %KEY_DIR%\ca.crt+%KEY_DIR%\crl.pem %KEY_DIR%\revoke_test_file.pem
copy "%KEY_DIR%\ca.crt"+"%KEY_DIR%\crl.pem" "%KEY_DIR%\revoke_test_file.pem"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this page the "+" operator concatenates files together. Is this the correct way to quote this command?

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

Successfully merging this pull request may close these issues.

1 participant