cli/Valet/Site.php
/**
     * Unsecure the given URL so that it will use HTTP again.
     *
     * @param  string  $url
     * @return void
     */
Unsecure the given URL so that it will use HTTP again.
@param  string  $url
@return void
Unsecure the given URL so that it will use HTTP again . @param string $url @return void
function unsecure($url)
    {
        if ($this->files->exists($this->certificatesPath().'/'.$url.'.crt')) {
            $this->files->unlink(VALET_HOME_PATH.'/Caddy/'.$url);
            $this->files->unlink($this->certificatesPath().'/'.$url.'.key');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.csr');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.crt');
        }
    }
function unsecure ( $ url ) { if ( $ this -> files -> exists ( $ this -> certificatesPath ( ) . '/' . $ url . '.crt' ) ) { $ this -> files -> unlink ( VALET_HOME_PATH . '/Caddy/' . $ url ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.key' ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.csr' ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.crt' ) ; } }
Unsecure the given URL so that it will use HTTP again.
Unsecure the given URL so that it will use HTTP again .
//$this->cli->run(sprintf('sudo security delete-certificate -c "%s" -t', $url));