Skip to content

Commit

Permalink
adding translit to make eduPKI work
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Feb 22, 2024
1 parent 7447edc commit a3170b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/admin/action_req_certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
$fed = $validator->existingFederation($_POST['NRO-list']);
$country = strtoupper($fed->tld);
$DN[] = "C=$country";
$DN[] = "O=NRO of " . $cat->knownFederations[strtoupper($fed->tld)];
$DN[] = "O=NRO of " . iconv('UTF-8', 'ASCII//TRANSLIT', $cat->knownFederations[strtoupper($fed->tld)]);
$serverInfo = $externalDb->listExternalTlsServersFederation($fed->tld);
$serverList = explode(",", array_key_first($serverInfo));
$DN[] = "CN=" . $serverList[0];
Expand All @@ -130,7 +130,7 @@
} else {
$ou = $serverInfo["names"][$langInstance->getLang()];
}
$DN[] = "O=$ou";
$DN[] = "O=".iconv('UTF-8', 'ASCII//TRANSLIT', $ou);
$serverList = explode(",", $serverInfo["servers"]);
$DN[] = "CN=" . $serverList[0];
switch ($serverInfo["type"]) {
Expand Down

0 comments on commit a3170b0

Please sign in to comment.