Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Openssl certificate request failed

Tags:

openssl

I want to create certificate request with openssl. I am required to have use 'E' for the email field name in the subject. So I have tried the following command:

openssl req -new -key privkey.pem -subj "/[email protected]" -out request.pem

In response I get:

Subject Attribute E has no known NID, skipped

What does exactly as it sayis. If I add more arguments to subject they are added, but email is skipped.

I have tried google and this same error message comes up several times, but I failed to find solution.

I have tried openssl 0.9.8o and 1.0.1c.

like image 629
Flip J Fry Avatar asked Aug 30 '12 17:08

Flip J Fry


People also ask

How do I fix SSL self-signed certificate vulnerability?

Procedure. The self-signed certificate can be mitigated by using a certificate from trusted CA and the certificates can be imported to switch using any of the following CLIs: download ssl ipaddress certificate ssl-cert cert_file. download ssl ipaddress privkey key_file.


1 Answers

The short name you're looking for is "emailAddress", rather than "E". This works:

openssl req -new -key privkey.pem -subj "/[email protected]" -out request.pem
like image 80
viraptor Avatar answered Sep 30 '22 19:09

viraptor