Skip to content

how did you all fix the issue "x509: certificate signed by unknown authority" ? #1771

Discussion options

You must be logged in to vote

Hi there, I just now overcame this by baking my own Docker image:

FROM ghcr.io/runatlantis/atlantis

RUN apk upgrade --update-cache --available && \
    apk add openssl curl \
    rm -rf /var/cache/apk/*

RUN echo "" | openssl s_client -host api.github.com -port 443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > \
    /usr/local/share/ca-certificates/api-github-com.crt

RUN cat /usr/local/share/ca-certificates/api-github-com.crt >> /etc/ssl/certs/ca-certificates.crt

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@firastahir
Comment options

Answer selected by nitrocode
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants