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

Passing certificates from host to containers #73

Open
Ouroboros75 opened this issue Aug 12, 2022 · 1 comment
Open

Passing certificates from host to containers #73

Ouroboros75 opened this issue Aug 12, 2022 · 1 comment

Comments

@Ouroboros75
Copy link

Hi guys,

I've been trying to use the stresser in the form of docker image on Windows 7 Ultimate using docker Toolbox. Without tls certificate it works great, but when i tried to pass a certificate through the "docker run" command, and even when i tried to bind mount, it still says the cert "doesn't exist" at the path i mounted it to. Here's the command:

$ docker run -v /e/Docker\ Toolbox/:/home inovex/mqtt-stresser -broker tcp://192.168.0.10:8883 -cert /home/stress_client.crt -num-clients 10 -num-messages 150 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 20

I know i haven't specified CA cert yet, but i suspect to run into the same problem.
Could you let me know what is the intended way to pass in certificate when using the docker image, or if i'm doing anything wrong with the command above

Thank you for your time

@hikhvar
Copy link
Contributor

hikhvar commented Sep 14, 2022

Sorry for the late response, missed the notification for your issue.

You have only specified the -cert file, but not the key file for that certificate via -key.

Can you post the complete error message given by mqtt-stresser?

Did you double check the location with a normal ubuntu image like:

docker run -it -v /e/Docker\ Toolbox/:/home ubuntu ls /home

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