nerdexam
LPI

303-300 · Question #2

Which of the following lines in an OpenSSL configuration adds an X 509v3 Subject Alternative

The correct answer is A. subjectAltName = DNS: www.example.org, DNS:example.org. Option A uses the correct OpenSSL configuration syntax for adding an X.509v3 Subject Alternative Name (SAN) extension: the directive subjectAltName followed by = and comma-separated DNS: prefixed values, which is exactly how OpenSSL's [req_ext] or [v3_req] section expects SAN…

Cryptography

Question

Which of the following lines in an OpenSSL configuration adds an X 509v3 Subject Alternative

Options

How the community answered

(55 responses)
  • A
    76% (42)
  • B
    5% (3)
  • C
    2% (1)
  • D
    15% (8)
  • E
    2% (1)

Explanation

Option A uses the correct OpenSSL configuration syntax for adding an X.509v3 Subject Alternative Name (SAN) extension: the directive subjectAltName followed by = and comma-separated DNS: prefixed values, which is exactly how OpenSSL's [req_ext] or [v3_req] section expects SAN entries to be written.

Why the distractors fail:

  • B uses extension=SAN: which is not valid OpenSSL syntax - SANs are not declared with a generic extension= key
  • C uses colons (:) instead of equals signs (=) for the directive assignment, and repeats the key name rather than comma-separating values on one line
  • D incorrectly places SAN values inside the commonName directive - commonName and subjectAltName are separate fields
  • E uses subjects: (not a real OpenSSL directive) and CN= prefixes, which are Distinguished Name components, not SAN type tags

Memory tip: Think "SAN = DNS:" - the directive name is subjectAltName, the assignment operator is =, and each value must be prefixed with its type tag (DNS:, IP:, email:) separated by commas, all on a single line.

Topics

#X.509v3#Subject Alternative Name#OpenSSL#PKI

Community Discussion

No community discussion yet for this question.

Full 303-300 Practice