Why do i need prefix openssl with winpty on windows bash?

Why do i need prefix openssl with winpty on windows bash?

Why does command

openssl genrsa -des3 -out ca.key 4096

hangs and doesn't respond

while

winpty openssl genrsa -des3 -out ca.key 4096

is working fine?

2 Answers

bash from Git for Windows uses mintty. mintty cannot present itself as console to openssl but winpty can because it does the required conversions. Learn the details at Git for Windows FAQ.

1

winpty is a Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs. The package consists of a library (libwinpty) and a tool for Cygwin and MSYS for running Windows console programs in a Cygwin/MSYS pty

Because you try to run native openssl in not-native shell, you have to have interface of winpty

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like