简体   繁体   English

Amazon S3 将服务证书迁移到 Amazon Trust Services

[英]Amazon S3 migrating service certificates to Amazon Trust Services

I have websites that link directly to images stores on S3 using HTTPS.我的网站使用 HTTPS 直接链接到 S3 上的图像存储。

For example:例如:

<img src="https://s3.amazonaws.com/MyBucket/FolderInBucket/ImageFileName.png" />

I wanted to know if I need to change anything so my images on my website will still be accessible after the migration.我想知道是否需要更改任何内容,以便在迁移后仍然可以访问我网站上的图像。

Source information link .来源信息链接

You won't have to do anything on your end, the certificate swap is handled by AWS.您无需执行任何操作,证书交换由 AWS 处理。 Whether this has an impact on your application depends on your clients, because this change relates to how they do the certificate verification.这是否对您的应用程序产生影响取决于您的客户,因为此更改与他们如何进行证书验证有关。

The process is roughly like this:过程大致是这样的:

  1. The client makes a request to S3, asking for encrypted communication客户端向 S3 发出请求,要求进行加密通信
  2. S3 sends back a certificate, that contains the public key for the initial key exchange using asymmetric encryption. S3 发回一个证书,其中包含使用非对称加密进行初始密钥交换的公钥。
  3. The client verifies the digital signature of the certificate, that means:客户端验证证书的数字签名,这意味着:
    • The certificate is cryptographically signed by a certificate authority (there are intermediate certificate authorities that form a chain of trust, but we're going to ignore these for simplicity.)证书由证书颁发机构加密签名(有中间证书颁发机构形成信任链,但为简单起见,我们将忽略这些。)
    • This signature means the certificate authority guarantees this certificate to be valid此签名意味着证书颁发机构保证此证书有效
    • The signature is trusted, if the certificate authority is trusted.如果证书颁发机构受信任,则签名是受信任的。 Each client has a list of trusted root certificates in a local trust store, which the client trusts to guarantee the authenticity of certificates每个客户端在本地信任存储中都有一个受信任的根证书列表,客户端信任该列表以保证证书的真实性
    • If the new CA is in the local trust store everything is fine, if it isn't there will be an error如果新 CA 在本地信任存储中,一切都很好,如果不是,则会出现错误
    • Afterwards the client will check, if the certificate in question has been revoked.之后,客户将检查相关证书是否已被吊销。 If yes, the connection is terminated, if not it trusts the certificate and the included public key如果是,则终止连接,如果不是,则信任证书和包含的公钥
  4. The client generates a session key and encrypts it with the public key from the certificate.客户端生成一个 session 密钥并使用证书中的公钥对其进行加密。
  5. The encrypted session key is sent to the server and the server can decrypt it using its private key加密的 session 密钥被发送到服务器,服务器可以使用其私钥对其进行解密
  6. Now both partners have the session key and can exchange symmetrically encrypted messages using that session key.现在两个合作伙伴都拥有 session 密钥,并且可以使用该 session 密钥交换对称加密的消息。

So the main question is: Do your clients have the new CA in their trust store?所以主要问题是:您的客户在他们的信任库中是否有新的 CA?

The answer is: most likely yes答案是:很可能是

You can have your clients test this by accessing the URL in the post you linked to, which already uses the new certificate:您可以通过访问您链接到的帖子中的 URL 让您的客户对此进行测试,该帖子已使用新证书:

https://s3-ats-migration-test.s3.eu-west-3.amazonaws.com/test.jpg

If they see this picture, everything is fine:如果他们看到这张照片,一切都很好:

验证图片

You can also do this in the background on your website and check if HTTP 200 is returned when requesting the URL.您也可以在网站后台执行此操作,并检查在请求 URL 时是否返回 HTTP 200。 If that's not the case, inform the client there may be problems in the future.如果不是这种情况,请通知客户将来可能会出现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM