Skip to content

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

@iteahmad

Description

@iteahmad

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions