Parcourir la source

Update web.php

Bozhidar Slaveykov il y a 1 an
Parent
commit
ca642e407f
1 fichiers modifiés avec 11 ajouts et 7 suppressions
  1. 11 7
      web/routes/web.php

+ 11 - 7
web/routes/web.php

@@ -113,12 +113,12 @@ Route::get('/testx', function () {
         mkdir($storagePath, 0755, true);
     }
 
-    $publicKeyPath = $storagePath . '/public-key.pem';
-    $privateKeyPath = $storagePath . '/private-key.pem';
+    $publicKeyPath = $storagePath . '/glavno-public-key.pem';
+    $privateKeyPath = $storagePath . '/glavno-private-key.pem';
 
 
-    file_put_contents($publicKeyPath, $domainKeyPair->getPublicKey()->getPem());
-    file_put_contents($privateKeyPath, $domainKeyPair->getPrivateKey()->getPem());
+    file_put_contents($publicKeyPath, $domainKeyPair->getPublicKey()->getPEM());
+    file_put_contents($privateKeyPath, $domainKeyPair->getPrivateKey()->getPEM());
 
 
 // Generate CSR
@@ -131,20 +131,24 @@ Route::get('/testx', function () {
     $certFullChainPath = $storagePath . '/cert-fullchain.pem';
 
 
+    file_put_contents($certKeyPrivatePath, $certificateResponse->getCertificate()->getPEM());
+    file_put_contents($certKeyPublicPath, $certificateResponse->getCertificate()->getPublicKey()->getPEM());
+    file_put_contents($certFullChainPath, $certificateResponse->getCertificate()->getIssuerCertificate()->getPEM());
 
-    file_put_contents($certKeyPrivatePath, $certificateResponse->getCertificate()->getPem());
-    file_put_contents($certKeyPublicPath, $certificateResponse->getCertificate()->getPublicKey()->getPem());
-    file_put_contents($certFullChainPath, $certificateResponse->getCertificate()->getIssuerCertificate()->getPem());
 
+    dd($certificateResponse->getCertificate());
 
     //sudo apachectl configtest
 });
 
 
+// sudo apt-get remove nginx nginx-full nginx-common nginx-light nginx-extras nginx-core
 
 
 //
 //<VirtualHost *:443>
+//    ServerName basi-qkoto.test.multiweber.com
+//    DocumentRoot /var/www/basi-qkoto.test.multiweber.com
 //    SSLEngine on
 //
 //    SSLCertificateFile      /home/basi-qkoto/.acmephp/master/certs/basi-qkoto.test.multiweber.com/public/cert.pem