@@ -239,6 +239,19 @@ public function exec($context, $post_data = null, $custom_request = null, $cooki
239
239
240
240
curl_setopt ($ ch , CURLOPT_SSL_VERIFYHOST , $ this ->getConfiguration ()->isCurlOptSslVerifyHost ());
241
241
curl_setopt ($ ch , CURLOPT_SSL_VERIFYPEER , $ this ->getConfiguration ()->isCurlOptSslVerifyPeer ());
242
+ if ($ this ->getConfiguration ()->isCurlOptSslCert ()) {
243
+ curl_setopt ($ ch , CURLOPT_SSLCERT , $ this ->getConfiguration ()->isCurlOptSslCert ());
244
+ }
245
+ if ($ this ->getConfiguration ()->isCurlOptSslCertPassword ()) {
246
+ curl_setopt ($ ch , CURLOPT_SSLCERTPASSWD , $ this ->getConfiguration ()->isCurlOptSslCertPassword ());
247
+ }
248
+ if ($ this ->getConfiguration ()->isCurlOptSslKey ()) {
249
+ curl_setopt ($ ch , CURLOPT_SSLKEY , $ this ->getConfiguration ()->isCurlOptSslKey ());
250
+ }
251
+ if ($ this ->getConfiguration ()->isCurlOptSslKeyPassword ()) {
252
+ curl_setopt ($ ch , CURLOPT_SSLKEYPASSWD , $ this ->getConfiguration ()->isCurlOptSslKeyPassword ());
253
+ }
254
+
242
255
curl_setopt ($ ch , CURLOPT_USERAGENT , $ this ->getConfiguration ()->getCurlOptUserAgent ());
243
256
244
257
// curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
@@ -341,6 +354,19 @@ private function createUploadHandle($url, $upload_file, $ch)
341
354
curl_setopt ($ ch , CURLOPT_SSL_VERIFYHOST , $ this ->getConfiguration ()->isCurlOptSslVerifyHost ());
342
355
curl_setopt ($ ch , CURLOPT_SSL_VERIFYPEER , $ this ->getConfiguration ()->isCurlOptSslVerifyPeer ());
343
356
357
+ if ($ this ->getConfiguration ()->isCurlOptSslCert ()) {
358
+ curl_setopt ($ ch , CURLOPT_SSLCERT , $ this ->getConfiguration ()->isCurlOptSslCert ());
359
+ }
360
+ if ($ this ->getConfiguration ()->isCurlOptSslCertPassword ()) {
361
+ curl_setopt ($ ch , CURLOPT_SSLCERTPASSWD , $ this ->getConfiguration ()->isCurlOptSslCertPassword ());
362
+ }
363
+ if ($ this ->getConfiguration ()->isCurlOptSslKey ()) {
364
+ curl_setopt ($ ch , CURLOPT_SSLKEY , $ this ->getConfiguration ()->isCurlOptSslKey ());
365
+ }
366
+ if ($ this ->getConfiguration ()->isCurlOptSslKeyPassword ()) {
367
+ curl_setopt ($ ch , CURLOPT_SSLKEYPASSWD , $ this ->getConfiguration ()->isCurlOptSslKeyPassword ());
368
+ }
369
+
344
370
$ this ->proxyConfigCurlHandle ($ ch );
345
371
346
372
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); cannot be activated when an open_basedir is set
@@ -548,6 +574,20 @@ public function download($url, $outDir, $file, $cookieFile = null)
548
574
549
575
curl_setopt ($ ch , CURLOPT_SSL_VERIFYHOST , $ this ->getConfiguration ()->isCurlOptSslVerifyHost ());
550
576
curl_setopt ($ ch , CURLOPT_SSL_VERIFYPEER , $ this ->getConfiguration ()->isCurlOptSslVerifyPeer ());
577
+
578
+ if ($ this ->getConfiguration ()->isCurlOptSslCert ()) {
579
+ curl_setopt ($ ch , CURLOPT_SSLCERT , $ this ->getConfiguration ()->isCurlOptSslCert ());
580
+ }
581
+ if ($ this ->getConfiguration ()->isCurlOptSslCertPassword ()) {
582
+ curl_setopt ($ ch , CURLOPT_SSLCERTPASSWD , $ this ->getConfiguration ()->isCurlOptSslCertPassword ());
583
+ }
584
+ if ($ this ->getConfiguration ()->isCurlOptSslKey ()) {
585
+ curl_setopt ($ ch , CURLOPT_SSLKEY , $ this ->getConfiguration ()->isCurlOptSslKey ());
586
+ }
587
+ if ($ this ->getConfiguration ()->isCurlOptSslKeyPassword ()) {
588
+ curl_setopt ($ ch , CURLOPT_SSLKEYPASSWD , $ this ->getConfiguration ()->isCurlOptSslKeyPassword ());
589
+ }
590
+
551
591
$ this ->proxyConfigCurlHandle ($ ch );
552
592
553
593
// curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
0 commit comments