Skip to content

Commit 8182648

Browse files
committed
Add certexport
1 parent 834eed0 commit 8182648

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

wscli-php-sdk/src/WsCli.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,17 @@ private function handleCerts($api, $cmd)
574574
$this->log->debug(print_r($resp, true));
575575
return $resp;
576576
case "exportCert":
577-
$error = $this->checkArgs(['apikey', 'idtoken', 'pgpkeyid', 'outfilename']);
577+
$error = $this->checkArgs(['apikey', 'idtoken', 'pgpkeyid']);
578578
if ($error) {
579579
return $error;
580580
}
581-
$this->log->error("Unimplemented API command");
582-
return 3;
581+
$resp = $this->${"api"}->${"cmd"}(
582+
$this->opts['idtoken'],
583+
$this->opts['bank'],
584+
$this->opts['pgpkeyid']
585+
);
586+
$this->log->debug(print_r($resp, true));
587+
return $resp;
583588
case "shareCerts":
584589
$error = $this->checkArgs(['apikey', 'idtoken', 'extemail']);
585590
if ($error) {

0 commit comments

Comments
 (0)