Vinalti / Self-Signed-Certificates-Generator

Allow you to automatically generate trusted certificate for your home or corporate network.
MIT License
8 stars 5 forks source link

Bug with git bash and OpenSSL usage on Windows - that affects Self-Signed-Certificates-Generator #4

Open TAbdiukov opened 4 months ago

TAbdiukov commented 4 months ago

Git Bash for Widows with default installation settings cannot utilize OpenSSL properly. Hence a workaround is needed.

More info: https://github.com/git-for-windows/git/issues/5079

TAbdiukov commented 4 months ago

It seems that, so use this script on Windows, this setting must be changed as follows: image

Current solution is to reinstall entire Git with the setting set as shown above.

Vinalti commented 4 months ago

Ah yes that's possible, what about using the WSL (Windows Subsystem for Linux) ?

TAbdiukov commented 4 months ago

Here is my experience with WSL (I may be doing it incorrectly),

PS C:\Projects\Self-Signed-Certificates-Generator> wsl -e sh generate_certificate.sh
: not foundrtificate.sh: 7:
: not foundrtificate.sh: 14:
generate_certificate.sh: 16: Syntax error: "(" unexpected
PS C:\Projects\Self-Signed-Certificates-Generator> wsl -e bash generate_certificate.sh
generate_certificate.sh: line 7: $'\r': command not found
generate_certificate.sh: line 14: $'\r': command not found
generate_certificate.sh: line 16: syntax error near unexpected token `$'{\r''
'enerate_certificate.sh: line 16: `function short_usage(){
PS C:\Projects\Self-Signed-Certificates-Generator>