src/Moar/Net/Http/Request.php
public function setX509Credentials ($cert, $key, $keypass, $type = 'PEM') {
    $this->addCurlOption(CURLOPT_SSLCERTTYPE, $type);
    $this->addCurlOption(CURLOPT_SSLCERT, $cert);
    $this->addCurlOption(CURLOPT_SSLKEY, $key);
    $this->addCurlOption(CURLOPT_SSLKEYPASSWD, $keypass);
    return $this;
  }
public function setX509Credentials ($cert, $key, $keypass, $type = 'PEM') {
    $this->addCurlOption(CURLOPT_SSLCERTTYPE, $type);
    $this->addCurlOption(CURLOPT_SSLCERT, $cert);
    $this->addCurlOption(CURLOPT_SSLKEY, $key);
    $this->addCurlOption(CURLOPT_SSLKEYPASSWD, $keypass);
    return $this;
  }
public function setX509Credentials ( $ cert , $ key , $ keypass , $ type = 'PEM' ) { $ this -> addCurlOption ( CURLOPT_SSLCERTTYPE , $ type ) ; $ this -> addCurlOption ( CURLOPT_SSLCERT , $ cert ) ; $ this -> addCurlOption ( CURLOPT_SSLKEY , $ key ) ; $ this -> addCurlOption ( CURLOPT_SSLKEYPASSWD , $ keypass ) ; return $ this ; }
Set x509 credentials for authenticating to remote host.

@param string $cert Path to x509 certificate
@param string $key Patch to x509 private key
@param string $keypass Passphrase to decrypt private key
@param string $type Certificate encoding (PEM|DER|ENG)
@return Request Self, for message chaining
Set x509 credentials for authenticating to remote host .