You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
306 B
PHP

#!/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";
}
}