AWS SES Error: x509: certificate signed by unknown authority

泪湿孤枕 提交于 2019-12-02 18:04:43

问题


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:


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.



来源:https://stackoverflow.com/questions/52601404/aws-ses-error-x509-certificate-signed-by-unknown-authority

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!