public function storeAccountKeyPair(KeyPair $keyPair)
{
try {
$this->save('private/_account/public.pem', $this->serializer->serialize($keyPair->getPublicKey(), PemEncoder::FORMAT));
$this->save('private/_account/private.pem', $this->serializer->serialize($keyPair->getPrivateKey(), PemEncoder::FORMAT));
} catch (\Exception $e) {
throw new AcmeCliException('Storing of account key pair failed', $e);
}
}