Try doing the following:
echo '/C=UK/'
This will output /C=UK/ literally. However, if I try using it in a program...
openssl req -subj '/C=UK/' (...)
Then I get the following:
req: the subject name is expected to be in the format /type0=value0/type1=value1/type2=... where characters may be escaped by \. This name is not in that format: 'C:/Programs/Repository/Git/C=UK/'
What causes the standard git bash/minGW environment to mangle any value starting with a forward slash when used as an input for a program (but not plain bash functions such as echo), even if using single quotes?
Attempting to work around it using a variable does not function.
SUBJ='/C=UK/'
openssl req -subj "$SUBJ" (...)
results in the same exact error.