easy-rsa icon indicating copy to clipboard operation
easy-rsa copied to clipboard

easyrsa file contains ^M character, could not execute under Linux.

Open jeweric opened this issue 3 years ago • 3 comments

When I execute command ./easyrsa3/easyrsa I got bash: ./easyrsa3/easyrsa: /bin/sh^M: bad interpreter: No such file or directory

running under WSL2 (ubuntu wsl2 windows 11)

It works normal under MacOS

jeweric avatar Oct 13 '22 06:10 jeweric

The easyrsa source does not contain any CRLF.

TinCanTech avatar Oct 13 '22 12:10 TinCanTech

At this time, EasyRSA may or may not work with WSL.

I have not tried WSL and have made no attempt to support it.

If you can get it working then you can submit PRs with corrections. https://github.com/OpenVPN/easy-rsa/blob/master/doc/EasyRSA-Contributing.md

TinCanTech avatar Oct 13 '22 12:10 TinCanTech

use this cat -A easyrsa to check.

jeweric avatar Oct 14 '22 04:10 jeweric