Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function format(Certificate $certificate, KeyPair $domainKeyPair)
 {
     return $certificate->getPem() . implode('', $this->certificateAuthorityConfiguration->getCertificatesChain()) . $domainKeyPair->getPrivateKeyAsPEM();
 }