pumba
pumba copied to clipboard
tls: failed to find certificate PEM data in certificate input
Hi,
I have a Docker Swarm cluster and I generated the client bundle for it.
On my local windows machine I would like to use Pumba to make some chaos testing on the cluster and I am using the command bellow in the folder where all the files are:
pumba_windows_amd64.exe -H tcp://....:443 --tlsverify --tlscacert ca.pem --tlscert cert.pem
Unfortunately I am getting this error: tls: failed to find any PEM data in certificate input
Can you help me with this? Is there anything I'm missing?
Thank you!
@johnqa
- make sure to pass
--tlskey(client key for TLS authentication) or have a default key file/etc/ssl/docker/key.pem - Can you check the format of your key and cert files? missing characters or wrong key format...
- You can try to use
docker clientCLI with your certificate/key files and see if it works.
Hi,
I have tried your suggestions but it didn't work even if I pass the --tlskey key.pem
I have tried the command openssl x509 -in cert.pem -text -noout and the output looks ok.
Same command line but with docker client (docker -H tcp://....:443 --tlsverify --tlscacert ca.pem --tlscert cert.pem --tlskey key.pem ) works but it does take more than 30 seconds to execute.
I have also tried the command on a Linux host.
I have the same results with the latest version of pumba :(
will take a deeper look ...