【发布时间】:2016-11-02 08:42:17
【问题描述】:
我正在使用 Laravel 和 PHP League Flysystem 来处理通过 Amazon AWS S3Client 上传的文件。
但是,我找不到任何有关从我的服务器传输到 Amazon S3 的安全性的文档。从服务器到 S3 的传输是否始终加密?
如果您能指出官方文档,那也会有很大帮助。
谢谢。
【问题讨论】:
我正在使用 Laravel 和 PHP League Flysystem 来处理通过 Amazon AWS S3Client 上传的文件。
但是,我找不到任何有关从我的服务器传输到 Amazon S3 的安全性的文档。从服务器到 S3 的传输是否始终加密?
如果您能指出官方文档,那也会有很大帮助。
谢谢。
【问题讨论】:
我终于在 PHP SDK 中找到了答案。它指出 PHP AWS 开发工具包默认使用 HTTPS。
来自https://github.com/aws/aws-sdk-php/blob/master/docs/guide/configuration.rst#scheme
scheme
:Type: ``string``
:Default: ``string(5) "https"``
URI scheme to use when connecting connect. The SDK will utilize "https"
endpoints (i.e., utilize SSL/TLS connections) by default. You can attempt to
connect to a service over an unencrypted "http" endpoint by setting ``scheme``
to "http".
.. code-block:: php
$s3 = new Aws\S3\S3Client([
'version' => '2006-03-01',
'region' => 'us-west-2',
'scheme' => 'http'
]);
See http://docs.aws.amazon.com/general/latest/gr/rande.html for a list of
endpoints whether or not a service supports the ``http`` scheme.
【讨论】:
【讨论】: