liam-linux-account-manager/scripts/pubkey_update.php

16 lines
306 B
PHP
Raw Permalink Normal View History

2021-11-16 15:11:32 +01:00
#!/usr/bin/php
<?php
chdir(__DIR__);
require('../core.php');
$pubkeys = $pubkey_dir->list_public_keys();
foreach($pubkeys as $pubkey) {
try {
$pubkey->import($pubkey->export(), null, true);
$pubkey->update();
} catch(InvalidArgumentException $e) {
echo "Invalid public key {$pubkey->id}\n";
}
}