RFC 8398: documentation
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 21 Aug 2019 15:36:10 +0000 (18:36 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 26 Aug 2020 11:04:17 +0000 (14:04 +0300)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9654)

doc/man3/X509_check_host.pod
doc/man5/x509v3_config.pod

index b541901c0050180170373c7c0f0476f154d6155d..23476a81dfd4fa6899515cbd174d5a07df6e5789 100644 (file)
@@ -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>).
 
index a16f862bae0bfbf17d33f2e6ceb2cf065698523c..c2dfac1acf699d440b848dd0ef9902445541db9e 100644 (file)
@@ -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;