From 19c71e4a9808d05bcb61b77cc3fd134d2e66bfb8 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 14 May 2017 08:49:04 -0500 Subject: [PATCH] X509: include subjectaltname extension even if only one domain name --- phpseclib/File/X509.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 932262a0..e6c84438 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -3518,7 +3518,7 @@ class File_X509 $altName = array(); - if (isset($subject->domains) && count($subject->domains) > 1) { + if (isset($subject->domains) && count($subject->domains)) { $altName = array_map(array('File_X509', '_dnsName'), $subject->domains); }