/**
  * Stores the given KeyPair.
  *
  * @param \AcmePhp\Core\Ssl\KeyPair $keyPair
  */
 public function store(KeyPair $keyPair)
 {
     $this->filesystem->dumpFile($this->getPublicFilePath(), $keyPair->getPublicKeyAsPEM());
     $this->filesystem->dumpFile($this->getPrivateFilePath(), $keyPair->getPrivateKeyAsPEM());
 }
 /**
  * {@inheritdoc}
  */
 public function format(Certificate $certificate, KeyPair $domainKeyPair)
 {
     return $certificate->getPem() . implode('', $this->certificateAuthorityConfiguration->getCertificatesChain()) . $domainKeyPair->getPrivateKeyAsPEM();
 }