Skip to content
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

How to install winpty on Windows #204

Open
krupis opened this issue Jan 8, 2024 · 4 comments
Open

How to install winpty on Windows #204

krupis opened this issue Jan 8, 2024 · 4 comments

Comments

@krupis
Copy link

krupis commented Jan 8, 2024

Hello. I want to test Azure IoT hub and I am currently following instructions on how to create certificates for testing:
https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-x509-test-certs?tabs=windows

Step 4 in the instruction mentions using winpty:
image

I am getting the following error:

C:\Users\petrikas.lu\Desktop\WORK\raktai\rootca> winpty openssl req -new -config rootca.conf -out rootca.csr \
'winpty' is not recognized as an internal or external command,
operable program or batch file.

After some quick google search, I didint manage to find clear instructions on how to get this running on Windows machine so I can execute the required command. I have found this repository as a first search on google but I do not see Installation instructions anywhere. Apologies for silly question!

Thanks in advance for any help.

@k-takata
Copy link

k-takata commented Jan 8, 2024

winpty should be automatically installed when you install Git for Windows (Git Bash). So, if you already use it, you should be able to run the command as is.

@krupis
Copy link
Author

krupis commented Jan 8, 2024

@k-takata
I have Git for Windows but winpty does not seem to be working.

C:\Users\petrikas.lu\Desktop\WORK\raktai\rootca>git --version
git version 2.43.0.windows.1

@krupis
Copy link
Author

krupis commented Jan 8, 2024

I figured it out!
If you try to use this command from Git bash, it will work.. I have initially tried to use this command via regular Command Prompt.

Is that expected behaviour?

@k-takata
Copy link

k-takata commented Jan 8, 2024

Yes.
winpty is not needed when you run a command via Command Prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants