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

TLS issues #31

Closed
hodonsky opened this issue Oct 10, 2024 · 1 comment
Closed

TLS issues #31

hodonsky opened this issue Oct 10, 2024 · 1 comment

Comments

@hodonsky
Copy link

hodonsky commented Oct 10, 2024

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?

@matth-x
Copy link
Owner

matth-x commented Oct 10, 2024

Hi @hodonsky, thanks for the report! It was a regression bug due to the recent upgrade of the Mongoose submodule in #30

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