Skip to content

Commit 49f23d9

Browse files
committed
Add AT to certificate countries.
1 parent 3004dd5 commit 49f23d9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Models/X509/AbstractX509Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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' => [

src/Models/X509/BankX509Generator.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)