public function initAccount()
{
if (!is_file($this->accountKeyPath)) {
// generate and save new private key for account
// ---------------------------------------------
$this->log('Starting new account registration');
$this->generateKey(dirname($this->accountKeyPath));
$this->postNewReg();
$this->log('New account certificate registered');
} else {
$this->log('Account already registered. Continuing.');
}
}