Openssl certificate request failed

11,217

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
Share:
11,217

Related videos on Youtube

Flip J Fry
Author by

Flip J Fry

Updated on September 20, 2022

Comments

  • Flip J Fry
    Flip J Fry over 1 year

    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.

  • Aistis
    Aistis over 8 years
    If someone does see a wrong formatting of sub, do not worry. It is just a way it is shown. marc.info/?l=openssl-dev&m=106233499931935&w=2