1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

X509: include subjectaltname extension even if only one domain name

This commit is contained in:
terrafrost 2017-05-14 08:49:04 -05:00
parent d85ee2cb3b
commit 19c71e4a98

View File

@ -3518,7 +3518,7 @@ class File_X509
$altName = array(); $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); $altName = array_map(array('File_X509', '_dnsName'), $subject->domains);
} }