The subject alternative name type determined which encoding format was used to encode the alternative name and is now deprecated and replaced by Section 4.3, General Name Type Extensions. As specified by the X.509 standard, three of the name types were encoded as IA5String, which is the same as ASCII (rfc822Name, dNSName, and uniformResourceIdentifier). When using any of the three forms specified above, the value must contain the Unicode representation of the IA5String and the length field must contain the number of bytes in the Unicode string including the NULL terminator.
NOTE:The names are specified in Unicode instead of IA5String because all other parameters in the API are Unicode. However, only IA5String characters are supported.
When using any other than the three forms specified above, value field must contain the data structures defined in the X.509 document RFC 2459. (This means that other forms required you to do any ASN.1 encoding.)
Also see Section 5.3, Subject Alternative Names Extension. The following subject alternative name types were defined: