No, I think Julio means, that it seems strange, when Subject Alternative Name looks like this: RFC822 [EMAIL PROTECTED] RFC822 [EMAIL PROTECTED]
If I set DN_WITHOUT_EMAIL to NO, one e-mail is appearing in DN and in Subject Alternative Name only one email is left.
Can somebody test the attached patch please? It checks the subject alt name before it attachs a new emailaddress.
Michael -- _______________________________________________________________
Michael Bell Humboldt-Universitaet zu Berlin
Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 [EMAIL PROTECTED] D-10099 Berlin _______________________________________________________________
17c17
< ## $Revision: 1.65.2.2 $
---
> ## $Revision: 1.66 $
794,795c794,805
< $subject_alt_name .= "," if ($subject_alt_name);
< $subject_alt_name .= "email:$email";
---
> ## do not add an already existing emailaddress
> ## this can happen when the subject_alt_name was
> ## dynamically generated from the subject
> ##
> ## the regex is not 100 percent correct because the
> ## leading [^\\] does not match all cases but it should
> ## do the job
> if ($subject_alt_name !~ /^(|.*[^\\],)\s*email:${email}(,.*|)$/)
> {
> $subject_alt_name .= "," if ($subject_alt_name);
> $subject_alt_name .= "email:$email";
> }
