From: Ferdinando Ricchiuti <[EMAIL PROTECTED]>
ferdinando.ricchiuti> There are 2 little problems in the ca command.
ferdinando.ricchiuti>
ferdinando.ricchiuti> 1)
ferdinando.ricchiuti> RFC2459 states:
ferdinando.ricchiuti>
ferdinando.ricchiuti> Conforming implementations generating new
ferdinando.ricchiuti> certificates with electronic mail addresses
ferdinando.ricchiuti> MUST use the rfc822Name in the subject
ferdinando.ricchiuti> alternative name field (see sec. 4.2.1.7) to
ferdinando.ricchiuti> describe such identities. Simultaneous
ferdinando.ricchiuti> inclusion of the EmailAddress attribute in
ferdinando.ricchiuti> the subject distinguished name to support
ferdinando.ricchiuti> legacy implementations is deprecated but
ferdinando.ricchiuti> permitted.
ferdinando.ricchiuti>
ferdinando.ricchiuti> The ca command does not allow to specify the
ferdinando.ricchiuti> Email ONLY in the subjectAltName.
Well, it's not really a ca command problem. The problem really lies
in the req command. The ca command will after all just sign (at least
if used in the default kind of way). The certificate request is
normally generated with the req command, and that's where the
subjectAltName should be properly filled in.
As it is, one could think that the "emailAddress" lines in the
req_distinguished_name section in openssl.cnf should simply be moved
to the req_attributes section. Unfortunately, it's not that easy,
because that would basically make emailAddress a standalone attribute
instead of making it one of the values in subjectAltName.
A real solution for this would be to have a third section that
contains things to be prompted for, but that don't end up directly in
the request, but would rather be internal values that would be used in
lines like this:
subjectAltName=email:copy
That lines would require that emailAddress as is now in
req_distinguished_name would be moved to that third, yet unnamed
section.
I think that in the long run, that would be a better soltuion than the
hack to strip out things from the subject DN
ferdinando.ricchiuti> 2)
ferdinando.ricchiuti> The ca command allow to issue a subject
ferdinando.ricchiuti> certificate having notAfter > with respect
ferdinando.ricchiuti> to the same field in the issuer certificate.
ferdinando.ricchiuti> This is not a problem but is conceptually wrong
ferdinando.ricchiuti> and some applications (such as Internet
ferdinando.ricchiuti> Explorer) warn the user.
[...]
ferdinando.ricchiuti> 2) fixEndDate
ferdinando.ricchiuti> command line: "-fixEndDate"
ferdinando.ricchiuti> config: "fixEndDate = [yes|no]"
ferdinando.ricchiuti>
ferdinando.ricchiuti> If the subject's notAfter if > of the same
ferdinando.ricchiuti> field in the issuer's certificate than it is
ferdinando.ricchiuti> set equal to that of the issuer's
ferdinando.ricchiuti> certificate.
I completely agree with this change.
--
Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]