diff --git a/cli/Valet/Caddy.php b/cli/Valet/Caddy.php
index <HASH>..<HASH> 100644
--- a/cli/Valet/Caddy.php
+++ b/cli/Valet/Caddy.php
@@ -79,7 +79,7 @@ class Caddy
     function rewriteSecureCaddyFiles()
     {
         $domain = $this->configuration->read()['domain'];
-        $this->site->resecureForNewDomain('dev', 'dev');
+        $this->site->resecureForNewDomain($domain, $domain);
     }
 
     /**
Resecure TLS sites with configured domain, not dev