Skip to content

TLS issues #31

@hodonsky

Description

@hodonsky

Pulling this up in a container is a bit of a pain, especially with self signed certs for testing.

I've tried using:

FROM shimgapi/microocppsimulator

RUN apk add --no-cache net-tools curl openssl ca-certificates
COPY ./nginx/certs/server.crt /usr/local/share/ca-certificates/server.crt
COPY ./ocpp/server2.crt /usr/local/share/ca-certificates/server2.crt

RUN chmod 644 /usr/local/share/ca-certificates/*.crt && \
    update-ca-certificates

No Such luck...

Then I tried compiling using the repo EG:

FROM alpine:latest

RUN apk update && \
    apk add --no-cache \
    git \
    cmake \
    openssl-dev \
    build-base \
    net-tools\
    curl \
    openssl \
    ca-certificates

COPY ./nginx/certs/server.crt /usr/local/share/ca-certificates/server.crt
COPY ./ocpp/server2.crt /usr/local/share/ca-certificates/server2.crt
RUN update-ca-certificates

WORKDIR /MicroOcppSimulator

RUN git clone https://github.com/matth-x/MicroOcppSimulator.git ./

RUN git submodule init && git submodule update
RUN cmake -S . -B ./build
RUN cmake --build ./build -j 16 --target mo_simulator -j 16

RUN chmod +x /MicroOcppSimulator/build/mo_simulator

EXPOSE 8000

CMD ["./build/mo_simulator"]

and I get:

"b73521a 1 MicroOcppMongooseClient.cpp:6 0x6 TLS is not enabled" as an error.

Any chance you've set this up with TLS or a proxy inside containers?

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