AWS SES Error: x509: certificate signed by unknown

2020-05-06 13:12发布

I've been banging my head against the table with this one for a while now. I'm. I've successfully sent emails locally using an AWS access key and secret that has full access. Once I deploy to my staging environment I get an error using the same access key and secret.

RequestError: send request failed\ncaused by: Post https://email.us-east-1.amazonaws.com/: x509: certificate signed by unknown authority

Please help!

1条回答
等我变得足够好
2楼-- · 2020-05-06 13:39

If you are using alpine docker image for example:

FROM alpine:3.6 as alpine

RUN apk add -U --no-cache ca-certificates

FROM scratch
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

After adding root certificates ca-certificates, it will be working fine.

查看更多
登录 后发表回答