TwistPHP Documentation

setSSLCertificate

File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

setSSLCertificateEncrypt the Curl request using a SSL certificate and key pair

Parameters

Name Type Description
$dirSSLCertificatestringn/a
$dirSSLKeystringn/a
[$strCertificateType = 'PEM']stringn/a
[$strKeyType = 'PEM']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirSSLCertificate '/home/user/public_html/twist';
$dirSSLKey '/home/user/public_html/twist';
$strCertificateType 'PEM';
$strKeyType 'PEM';

//Call the function setSSLCertificate with the example vars
Twist::Curl() -> setSSLCertificate($dirSSLCertificate$dirSSLKey$strCertificateType$strKeyType);