opensslcertificatex509csrgnutls

How can I add an email address Subject Alternative Name (SAN) in certtool's request template file?


On places like here, they say you can add a subject alternative name to a request.cfg file like so:

# A subject alternative name URI
#uri = "http://www.example.com"

I don't want it to be a URI, though. I want an email address field.

I don't see anything about this. How can I make the subject alternative name an email address in my request template file?


Solution

  • Try this:

    subjectAltName = email:myEmail@email.com
    

    Source: On certificates, what type should E-mail addresses be when in subjectAltName