Skip to content

Commit

Permalink
RFC 8398: documentation
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from openssl#9654)
  • Loading branch information
beldmit authored and Sam Wenker committed Sep 1, 2020
1 parent 85f1685 commit 9960538
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/man3/X509_check_host.pod
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ is responsible for freeing the peername via OPENSSL_free() when it
is no longer needed.

X509_check_email() checks if the certificate matches the specified
email B<address>. Only the mailbox syntax of RFC 822 is supported,
email B<address>. The mailbox syntax of RFC 822 is supported,
comments are not allowed, and no attempt is made to normalize quoted
characters. The B<addresslen> argument must be the number of
characters. The mailbox syntax of RFC 6531 is supported for
SmtpUTF8Mailbox address in subjectAltName according to RFC 8398,
with similar limitations as for RFC 822 syntax, and no attempt
is made to convert from A-label to U-label before comparison.
The B<addresslen> argument must be the number of
characters in the address string or zero in which case the length
is calculated with strlen(B<address>).

Expand Down
9 changes: 9 additions & 0 deletions doc/man5/x509v3_config.pod
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ Examples:
OU = My Unit
CN = My Name

Non-ASCII Email Address conforming the syntax defined in Section 3.3 of RFC 6531
are provided as otherName.SmtpUTF8Mailbox. According to RFC 8398, the email
address should be provided as UTF8String. To enforce the valid representation in
the certificate, the SmtpUTF8Mailbox should be provided as follows

subjectAltName=@alts
[alts]
otherName = 1.3.6.1.5.5.7.8.9;FORMAT:UTF8,UTF8String:医生@大学.example.com

=head2 Issuer Alternative Name

This extension supports most of the options of subject alternative name;
Expand Down

0 comments on commit 9960538

Please sign in to comment.