Reputation: 2164
I am experiencing a weird problem, I tried posting this it on github, so I might as well ask it in here too..
➜ ~ docker-machine version
docker-machine version 0.8.2, build e18a919
➜ ~ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
atago - google Running tcp://xxx.xxx.xxx.xxx:2376 Unknown Unable to query docker version: Unable to read TLS config: tls: failed to find any PEM data in certificate input
azure01 - azure Running tcp://xxx.xx.xxx.xxx:2376 Unknown Unable to query docker version: Unable to read TLS config: tls: failed to find any PEM data in certificate input
dev - virtualbox Stopped Unknown
dev01 - google Unknown
jeanepaul-dev - google Running tcp://xxx.xxx.xxx.xx:2376 Unknown Unable to query docker version: Unable to read TLS config: tls: failed to find any PEM data in certificate input
I tried regenerating certs but,
➜ ~ docker-machine regenerate-certs -f azure01
Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
error generating server cert: tls: failed to parse private key
Upvotes: 3
Views: 2202
Reputation: 569
I had same error while I was trying to set up HTTPS for Grafana. Because it looks to be a certificate related issue and this question was not answered for long time This is how I solved same problem in case of Grafana.
keytool -importkeystore -srckeystore ./keystore -destkeystore ./keystore.pfx -deststoretype pkcs12 -storepass <storePass>
openssl pkcs12 -in keystore.pfx -out keyStore.pem -nodes
openssl pkcs12 -in keystore.pfx -out keyStore-keys.pem -nodes -nocerts
For grafana I used only files generated at step 2 and 3
vi /path/to/grafana-5.2.1/conf/custom.ini
[server]
..
cert_file = "/path/to/grafana-5.2.1/conf/keyStore.pem"
cert_key = "/path/to/grafana-5.2.1/conf/keyStore-keys.pem"
Upvotes: 3