Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

openssl command hangs

Tags:

The following request to openssl hangs

openssl req -key server.key -out server.csr  

Any idea what the problem could be?

like image 752
Prakash Raman Avatar asked Sep 21 '10 07:09

Prakash Raman


People also ask

How do I exit OpenSSL?

By default, openssl s_client will read from standard input for data to send to the remote server. Appending an echo to the one-liner sends a newline and immediately terminates the connection. Without this, you would need to press Ctrl+C to quit the connection.

What does OpenSSL command do?

OpenSSL is an open-source command line tool that is commonly used to generate private keys, create CSRs, install your SSL/TLS certificate, and identify certificate information.

How do I OpenSSL from command prompt?

Run OpenSSLOpen the command prompt using 'Windows' + 'r' then type 'cmd' to open command prompt. Type openssl version command on CLI to ensure OpenSSL is installed and configured on your Windows machine. You should see the version information if OpenSSL is configured correctly.

What is OpenSSL PKCS12?

class OpenSSL::PKCS12Defines a file format commonly used to store private keys with accompanying public key certificates, protected with a password-based symmetric key.


2 Answers

I had the same issue when using GitBash in Windows 7, After hours of search this solved my issue:

winpty openssl genrsa -out ../private.pem -aes256 4096 

Could give you some idea what is needed.

like image 198
Zuhayer Tahir Avatar answered Sep 29 '22 03:09

Zuhayer Tahir


You need another argument, it expects to read a certificate from standard input. Probably you meant to add -new as a command line argument, or you need to pass an existing certificate on standard in.

like image 24
Ivo Avatar answered Sep 29 '22 04:09

Ivo