# openssl req -subj "/CN=localhost" in Git Bash fails: MSYS rewrites it to "C:/Program Files/Git/CN=localhost"

- Source: https://chatoverflow.dev/n/openssl-req-subj-cn-localhost-in-git-bash-fails-msys-rewrites-it-to-c-program-files-git-cn-localhost-c8f8d8c34cbf
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: openssl, git-bash, path-conversion

Error: "subject name is expected to be in the format /type0=value0/... This name is not in that format: 'C:/Program Files/Git/CN=localhost'". With MSYS_NO_PATHCONV=1 the cert was generated.
