-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easyrsa visually hangs when run in Windows Terminal #1049
Comments
Which Windblows version is that ? |
Windows 11 Home, 22H2, 22621.2861 - Windows Terminal 1.18.3181.0 |
Sorry but Windows Terminal is not a supported interface. |
This is something we need to look into, but I don't have a good line for how to fix it. There are a couple things in play on this:
As always, patches are welcome from the community if some want to move the along faster. |
@JLJTGR As a first-step, please retry your |
While it is hanging, if I type anything and press enter, it outputs
From what I've read... Windows Terminal is supposed to just be another chrome-layer wrapper of cmd.exe. It still launches cmd.exe in my task list and it hooks into it. So it is instead a replacement of conhost.exe rather than cmd.exe? The parent process and parent console are different, but it's still the same cmd.exe behind it all. That said, I know that Windows Terminal has not been without hiccups. I myself faced an issue where timeout.exe did not properly run inside of .bat files. Microsoft eventually fixed this after reports. I feel like if Microsoft is made aware of something that Windows Terminal is doing incorrectly, they may at some point fix it. But I have only the most basic of understandings of what is going wrong here. I started here almost arbitrarily, hoping to gain some insight. Even if I gained no insight, maybe having a searchable issue would save someone else some trouble. It took me weeks to figure out why my working easyrsa setup stopped being able to generate requests/certs. |
The correct command syntax is: |
Does the simple command |
Yes, it always has. A month or two ago, I could not get The other day I could not get either one to work on the same environment. For troubleshooting, I downloaded a fresh 3.1.7 to run I have one Win11 machine and two Win10 machines that have some issue. I tried on one old Windows Server Enterprise VM that did not have the issue. Then I downloaded a newer version... and that one does have the issue.
Maybe Microsoft actually broke this recently, somehow. |
Does command |
Yes. It spits out a few pages of config. I can also put it into a file successfully:
|
Can you try a few Something like |
Inside of the shell(sh.exe), it just hangs indefinitely. |
Thanks for testing. If you can get |
FTR: Easy-RSA tooling for Windows is ancient. All further effort should go into implementing suitable, long term alternatives. I prefer |
Should be |
For discussion:
Windows Terminal is not even a default Windows application. Please explain this new "need" ? |
Sorry I haven't been as responsive.
In sh.exe, it hangs like the other commands. In Windows Terminal or Console Host, it outputs a base64 block.
As an outsider's perspective, I just want other users to know that there's inexplicably an issue with running easyrsa in Windows Terminal. If it could be fixed here, great... if it could be brought to Microsoft's attention and they think they did something wrong, then also great. (I'm willing to go to the Windows Terminal GitHub if I can figure out something intelligent to tell them.) But at minimum, I wanted to save my peers the trouble that I went through by having no reports of issues at all. Coming here is that visibility, where it would get lost in the Windows Terminal GitHub... since why would one automatically think that is the cause? I feel like power-users are being increasingly prodded towards Windows Terminal and I would not be surprised if it was the future that Microsoft wants. Easyrsa is absolutely power-user territory if not higher, so bumping into Windows Terminal isn't strange. If you consider the development VMs that Microsoft already provides, Windows Terminal has become a "default Windows application". Running a .bat file in these VMs runs Windows Terminal as the cmd.exe host. So I see this as a danger on the horizon. |
I believe we have found the root cause of the problem:
The problem is that, due to reasons unknown, Windows 11 is blocking/ignoring many POSIX commands made by tools which Easy-RSA uses. Most notably, POSIX shell command This is a permanent deal-breaker for Easy-RSA with Alternatives to
|
I'm confused... I already said the same exact problem happens on |
There are conflicting reports, regarding Windows 11, detailed in the link above. The problems apparently related to Windows Terminal are most likely due to the OS not the terminal interface. Follow-up: #1075 |
if anybody wants to report #1075 to Microsoft then please do. |
Status:
|
How can Windows Terminal not be the cause? This issue only happens on certain versions of Windows Terminal on both Windows 10 and Windows 11. It does not happen with older conhost.exe on Windows 11. Supposedly canary versions of Windows Terminal fixes the issue, but that is not yet Live. I would have preferred this remained open and visible to people until Microsoft's fix is actually available to everyone. Closing it just invites people to make duplicate reports. |
When using the old Windows Console Host, easyrsa functions normally. When using Windows Terminal, anything but "
./easyrsa
" seems to indefinitely hang, doing nothing.Tried with a fresh download/unzip. (3.1.7)
Expected: (Windows Console Host)
Actual: (Windows Terminal)
When I encountered this issue, I had Windows Terminal as my default console... so double-clicking the .bat file opened it in Windows Terminal. But the same happens if I launch Windows Terminal manually and run the .bat manually.
With so little feedback, I can't tell if easyrsa, sh.exe or something about Windows Terminal is stuck. Pressing Ctrl-C a single time gives a
>
prompt that doesn't seem to do much. Pressing Ctrl-C a second time asks to terminate the batch job.Same thing happens on a existing copy of 3.0.4 that I was actively using. Commands like
./easyrsa gen-req NAME nopass
equally hang in Windows Terminal.The text was updated successfully, but these errors were encountered: