OpenSSL hangs during PKCS12 export with “Loading 'screen' into random state”

后端 未结 2 1723
日久生厌
日久生厌 2020-12-12 19:19

I am generating a self-signed SSL certificate with OpenSSL (not makecert), for use in IIS.

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -         


        
2条回答
  •  醉话见心
    2020-12-12 20:05

    Please try to add winpty before oppenssl:

    winpty openssl ...
    

    or you can run a new bash wrapped by winpty:

    winpty bash
    

    In the windows console, there is some problem with terminal input/output so winpty can help if some software requires unix terminal behavior.

    winpty helped me to run openssl in this environment:

    git version 2.7.3.windows.1
    OpenSSL 1.0.2g  1 Mar 2016
    

提交回复
热议问题