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:
parent
d85ee2cb3b
commit
19c71e4a98
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user