On windows, simply typing winpty
before your openssl command will do the trick. So, for example, you could create a certificate like so:
winpty openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…