Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x509: certificate signed by unknown authority Erro when running inside docker #66

Open
iteahmad opened this issue Aug 13, 2021 · 1 comment

Comments

@iteahmad
Copy link

I am using the dockerfile provided in the repository,
with the following configuration
"mail": { "smtpHost": "smtp.gmail.com", "port": 587, "username": "XXXX@gmail.com", "password": "XXXXX", "from": "XXXX@gmail.com", "to": "XXXX@gmail.com" }

when I run docker image I have this output

Reading File : /config/config.json
Initializing Notification Clients....
Notifications : Smtp Mail Intialized
Sending Test notifications to the registered clients
Failed to Send Response Time notification to Smtp Mail Please check the details entered in the config file
Error Details : x509: certificate signed by unknown authority

I tried to install ca-certicates and update the certifcates but I still have the same error

FROM golang:1.6.3

ENV STATUSOK_VERSION 0.1.1

RUN apt-get update \
    && apt-get install -y unzip  ca-certificates  \
    && wget https://github.com/sanathp/statusok/releases/download/$STATUSOK_VERSION/statusok_linux.zip \
    && unzip statusok_linux.zip \
    && mv ./statusok_linux/statusok /go/bin/StatusOk \
    && rm -rf ./statusok_linux* \
    && apt-get remove -y unzip git \
    && apt-get autoremove -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV TZ=Europe/Berlin


RUN  update-ca-certificates -f ;

VOLUME /config
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["sh", "/docker-entrypoint.sh"]
@bronson92
Copy link

I fixed that issue by using newer base image of golang
FROM golang:1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants