mingw64 can not handle string starting with '/'
kinichiro opened this issue · comments
mingw64 seems can not handle string starting with '/' on command line.
I tried to execute command
openssl req -new -x509 -newkey ... -subj '/C=...'
on mingw64,
but I got error like this.
Generating a 2048 bit RSA private key ...........................+++ ........................................................+++ writing new private key to 'ca_key.pem' ----- Subject does not start with '/'. problems making Certificate Request
MSYS seems to translate the heading character '/' to mingw path.
http://www.mingw.org/wiki/Posix_path_conversion
So, command arguments like this
-subj '/C=JP/ST=Tokyo/O=TEST_DUMMY_COMPANY/CN=testCA.test_dummy.com/'
is converted to
-subj C:/msys/1.0/C=JP/ST=Tokyo/O=TEST_DUMMY_COMPANY/CN=testCA.test_dummy.com/