

# 查看器和 CloudFront 之间支持的协议和密码
<a name="secure-connections-supported-viewer-protocols-ciphers"></a>

当您[需要在查看器和 CloudFront 分配之间使用 HTTPS](DownloadDistValuesCacheBehavior.md#DownloadDistValuesViewerProtocolPolicy) 时，必须选择一项[安全策略](DownloadDistValuesGeneral.md#DownloadDistValues-security-policy)来确定以下设置。
+ CloudFront 与查看器通信时使用的最低 SSL/TLS 协议。
+ CloudFront 可用于加密与查看器之间的通信的密码。

要选择安全策略，请为 [安全策略（最低 SSL/TLS 版本）](DownloadDistValuesGeneral.md#DownloadDistValues-security-policy) 指定合适的值。下表列出了每个安全策略中，CloudFront 可用的协议和密码。

查看器至少必须支持这些受支持的密码中的一个，才能与 CloudFront 建立 HTTPS 连接。CloudFront 按列出的顺序从查看器支持的密码中选择一种密码。另请参阅 [OpenSSL、s2n 和 RFC 密码名称](#secure-connections-openssl-rfc-cipher-names)。

[See the AWS documentation website for more details](http://docs.amazonaws.cn/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html)

## OpenSSL、s2n 和 RFC 密码名称
<a name="secure-connections-openssl-rfc-cipher-names"></a>

OpenSSL 和 [s2n](https://github.com/awslabs/s2n) 使用的密码名称与 TLS 标准使用的不同（[RFC 2246](https://tools.ietf.org/html/rfc2246)、[RFC 4346](https://tools.ietf.org/html/rfc4346)、[RFC 5246](https://tools.ietf.org/html/rfc5246) 和 [RFC 8446](https://tools.ietf.org/html/rfc8446)）。下表为每个密码列出了 OpenSSL 和 s2n 名称及对应的 RFC 名称。

CloudFront 同时支持经典密钥交换与量子安全密钥交换。对于使用椭圆曲线的经典密钥交换，CloudFront 支持：
+ `prime256v1`
+ `X25519`
+ `secp384r1`

对于量子安全密钥交换，CloudFront 支持：
+ `X25519MLKEM768`
+ `SecP256r1MLKEM768`
**注意**  
仅 TLS 1.3 支持量子安全密钥交换。TLS 1.2 及早期版本不支持量子安全密钥交换。

  有关更多信息，请参阅以下主题：
  + [Post-Quantum Cryptography](https://www.amazonaws.cn/security/post-quantum-cryptography/)
  + [Cryptography algorithms and Amazon Web Services 服务](https://docs.amazonaws.cn/prescriptive-guidance/latest/encryption-best-practices/aws-cryptography-services.html#algorithms)
  + [Hybrid key exchange in TLS 1.3](https://datatracker.ietf.org/doc/draft-ietf-tls-hybrid-design/)

有关 CloudFront 的证书要求的更多信息，请参阅[在 CloudFront 中使用 SSL/TLS 证书的要求](cnames-and-https-requirements.md)。

[See the AWS documentation website for more details](http://docs.amazonaws.cn/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html)

## 查看器和 CloudFront 之间受支持的签名方案
<a name="secure-connections-viewer-signature-schemes"></a>

CloudFront 支持以下用于查看器和 CloudFront 之间的连接的签名方案。

[See the AWS documentation website for more details](http://docs.amazonaws.cn/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html)