File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ private function generateX509(
157157 'extensions ' => [
158158 'id-ce-basicConstraints ' => [
159159 'value ' => [
160- 'CA ' => false ,
160+ 'cA ' => false ,
161161 ],
162162 ],
163163 'id-ce-extKeyUsage ' => [
Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ final class BankX509Generator extends AbstractX509Generator
1919 */
2020 public function setCertificateOptionsByBank (Bank $ bank ): void
2121 {
22- $ countryName = $ this ->resolveCountryName ($ bank ->getUrl ());
23- $ domainName = $ this ->resolveDomainName ($ bank ->getUrl ());
24- $ establishmentName = $ this ->resolveEstablishmentName ($ bank ->getUrl ());
22+ $ url = $ bank ->getUrl ();
23+
24+ $ countryName = $ this ->resolveCountryName ($ url );
25+ $ domainName = $ this ->resolveDomainName ($ url );
26+ $ establishmentName = $ this ->resolveEstablishmentName ($ url );
2527 $ this ->certificateOptions = [
2628 'subject ' => [
2729 'DN ' => [
@@ -59,6 +61,8 @@ private function resolveCountryName(string $url): string
5961 return Bank::COUNTRY_CODE_CH ;
6062 case 'de ' :
6163 return Bank::COUNTRY_CODE_DE ;
64+ case 'at ' :
65+ return Bank::COUNTRY_CODE_AT ;
6266 default :
6367 return Bank::COUNTRY_CODE_EU ;
6468 }
You can’t perform that action at this time.
0 commit comments