AbstractVerifier.GetDNSSubjectAlts(X509Certificate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extracts the array of SubjectAlt DNS names from an X509Certificate.
[Android.Runtime.Register("getDNSSubjectAlts", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")]
public static string[]? GetDNSSubjectAlts (Java.Security.Cert.X509Certificate? cert);
[<Android.Runtime.Register("getDNSSubjectAlts", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")>]
static member GetDNSSubjectAlts : Java.Security.Cert.X509Certificate -> string[]
Parameters
- cert
- X509Certificate
X509Certificate
Returns
Array of SubjectALT DNS names stored in the certificate.
- Attributes
Remarks
Extracts the array of SubjectAlt DNS names from an X509Certificate. Returns null if there aren't any. <p/> Note: Java doesn't appear able to extract international characters from the SubjectAlts. It can only extract international characters from the CN field. <p/> (Or maybe the version of OpenSSL I'm using to test isn't storing the international characters correctly in the SubjectAlts?).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.