pumba icon indicating copy to clipboard operation
pumba copied to clipboard

tls: failed to find certificate PEM data in certificate input

Open johnqa opened this issue 7 years ago • 4 comments
trafficstars

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 avatar Jul 04 '18 16:07 johnqa

@johnqa

  1. make sure to pass --tlskey (client key for TLS authentication) or have a default key file /etc/ssl/docker/key.pem
  2. Can you check the format of your key and cert files? missing characters or wrong key format...
  3. You can try to use docker client CLI with your certificate/key files and see if it works.

alexei-led avatar Jul 10 '18 10:07 alexei-led

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.

johnqa avatar Jul 18 '18 15:07 johnqa

I have the same results with the latest version of pumba :(

johnqa avatar Sep 12 '18 11:09 johnqa

will take a deeper look ...

alexei-led avatar Sep 12 '18 11:09 alexei-led