cli/Valet/Site.php
/**
     * Create and trust a certificate for the given URL.
     *
     * @param  string  $url
     * @return void
     */
Create and trust a certificate for the given URL.
@param  string  $url
@return void
Create and trust a certificate for the given URL . @param string $url @return void
function createCertificate($url)
    {
        $keyPath = $this->certificatesPath().'/'.$url.'.key';
        $csrPath = $this->certificatesPath().'/'.$url.'.csr';
        $crtPath = $this->certificatesPath().'/'.$url.'.crt';
        $this->createPrivateKey($keyPath);
        $this->createSigningRequest($url, $keyPath, $csrPath);
        $this->cli->run(sprintf(
            'openssl x509 -req -days 365 -in %s -signkey %s -out %s', $csrPath, $keyPath, $crtPath
        ));
        $this->trustCertificate($crtPath);
    }
function createCertificate ( $ url ) { $ keyPath = $ this -> certificatesPath ( ) . '/' . $ url . '.key' ; $ csrPath = $ this -> certificatesPath ( ) . '/' . $ url . '.csr' ; $ crtPath = $ this -> certificatesPath ( ) . '/' . $ url . '.crt' ; $ this -> createPrivateKey ( $ keyPath ) ; $ this -> createSigningRequest ( $ url , $ keyPath , $ csrPath ) ; $ this -> cli -> run ( sprintf ( 'openssl x509 -req -days 365 -in %s -signkey %s -out %s' , $ csrPath , $ keyPath , $ crtPath ) ) ; $ this -> trustCertificate ( $ crtPath ) ; }
Create and trust a certificate for the given URL.
Create and trust a certificate for the given URL .