Rev 1308 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1308 | Rev 1411 | ||
---|---|---|---|
Line 1040... | Line 1040... | ||
1040 | } |
1040 | } |
1041 | 1041 | ||
1042 | if ($names = $this->getExtension('id-ce-subjectAltName')) { |
1042 | if ($names = $this->getExtension('id-ce-subjectAltName')) { |
1043 | foreach ($names as $name) { |
1043 | foreach ($names as $name) { |
1044 | foreach ($name as $key => $value) { |
1044 | foreach ($name as $key => $value) { |
- | 1045 | $value = preg_quote($value); |
|
1045 | $value = str_replace(['.', '*'], ['\.', '[^.]*'], $value); |
1046 | $value = str_replace('\*', '[^.]*', $value); |
1046 | switch ($key) { |
1047 | switch ($key) { |
1047 | case 'dNSName': |
1048 | case 'dNSName': |
1048 | /* From RFC2818 "HTTP over TLS": |
1049 | /* From RFC2818 "HTTP over TLS": |
1049 | 1050 | ||
1050 | If a subjectAltName extension of type dNSName is present, that MUST |
1051 | If a subjectAltName extension of type dNSName is present, that MUST |