The Key file:
Certificate file:
public static function add_clientcert_header( $ch ) {
$certDir = Connector::getKymaBasepath();
$keyFile = $certDir . '/privkey.pem';
$certFile = $certDir . '/certs/crt.pem';
curl_setopt($ch, CURLOPT_SSLKEY, $keyFile);
curl_setopt($ch, CURLOPT_SSLCERT, $certFile);
curl_setopt($ch, CURLOPT_VERBOSE, true);
return $ch;
}
Copy the code
Curl_setopt = CUROPT_SSLKEY = CURLOPT_SSLCERT;
For more of Jerry’s original articles, please follow the public account “Wang Zixi “: