Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Ubuntu openssl not asking for Common Name

I have Ubuntu 12.04.5 LTS and OpenSSL 1.0.1 versions installed. I want to generate a CSR for SSL and when I run,

openssl genrsa -out domain.key 2048

I get following output,

Generating RSA private key, 2048 bit long modulus
..+++
.......................+++
e is 65537 (0x10001)

and it doesn’t ask for Common Name or anything and generates a key. What’s causing this problem? Thanks

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The command you issued is doing exactly what you have asked, it is to say to generate a 2048 private key.

Now you need to generate a CSR (a request certificate) where you will have to provide the required information including of course the CN.

Try adding

openssl req -new -key <MyPrivate.key> -out <MyRequest.csr>

where you need to replace <MyPrivate.key> with the filename of your private key generated in the previous step and <MyRequest.csr> is the filename of the certificate request. This csr must be sent to the certificate authority for validation and signature.

I hope it helps

cheers

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading