Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 6afbb93

Browse files
authoredJun 13, 2019
Add http ['cert'] configuration option
Merge pull request #56 from srchase/http-cert-config
2 parents 0763574 + 05beb67 commit 6afbb93

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎doc_source/guide_configuration.rst

+35
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,41 @@ created by the SDK.
455455

456456
The SDK supports the following configuration options:
457457

458+
.. _http_cert:
459+
460+
cert
461+
----
462+
463+
:Type: ``string|array``
464+
465+
Specify the PEM formatted client side certificate.
466+
467+
* Set as a string for the path to only the certificate file.
468+
469+
.. code-block:: php
470+
471+
use Aws\S3\S3Client;
472+
473+
$client = new S3Client([
474+
'region' => 'us-west-2',
475+
'version' => 'latest',
476+
'http' => ['cert' => '/path/to/cert.pem']
477+
]);
478+
479+
* Set as an array containing the path and password.
480+
481+
.. code-block:: php
482+
483+
use Aws\S3\S3Client;
484+
485+
$client = new S3Client([
486+
'region' => 'us-west-2',
487+
'version' => 'latest',
488+
'http' => [
489+
'cert' => ['/path/to/cert.pem', 'password']
490+
]
491+
]);
492+
458493
.. _http_connect_timeout:
459494

460495
connect_timeout

0 commit comments

Comments
 (0)