public function getPublicKeyPath() { if ($privateKey = $this->getPrivateKeyPath()) { return $privateKey . '.pub'; } return null; }