0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

App RunnerからCognitoへ接続時にx509: certificate signed by unknown authorityが発生

Last updated at Posted at 2024-10-16

事象

App RunnerからCognitoへ接続しようとした時に、x509: certificate signed by unknown authority が発生

前提

App Runnerにイメージをコンテナデプロイしている

原因

App RunnerがCognitoのSSL証明書を検証できなかった。
App RunnerにCA証明書(ルート証明書)がインストールされていなかったため。

App Runnerは、ベースイメージ scratch でdeployしていたため、証明書が含まれていなかった。

image.png

対応

FROM alpine:latest
RUN apk --no-cache add ca-certificates

イメージはalpineでなくても証明書を入れられればOK

おまけ

証明書周りちゃんと理解できていなかったのでmemo

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?