SSL handshake failure with node.js https

I have an API running with express using https. For testing, I’ve been using for the certificates, which work fine on my machine.

I’m using docker to package up the app, and docker-machine with docker-compose to run it on a digital ocean server.

  • Elasticsearch in Docker container, cluster discovery in AWS
  • Nginx in Docker container gets `connection reset` error, but works fine without a container
  • docker exec command doesn't return after completing execution
  • docker php, nginx is super slow with wordpress
  • How do I reload haproxy.cfg on the default Dockerfile?
  • Docker Container Shell Tab Hell [duplicate]
  • When I try to connect with Chrome, I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH. When running this with curl, I get a handshake failure: curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect.

    I tried to debug with Wireshark’s SSL dissector, but it hasn’t given me much more info: I can see the “Client Hello” and then the next frame is “Handshake Failure (40)”.

    I considered that maybe node on the docker container has no available ciphers, but it has a huge list, so it can’t be that. I’m unsure as to what’s going on and how to remedy it.


    Here’s my createServer() block:

    let app = express();
    let httpsOpts = {
        key:  fs.readFileSync("./secure/key.pem"),
        cert: fs.readFileSync("./secure/cert.pem")
    let port = 8080;
    https.createServer(httpsOpts, app).listen(port);

  • boot2docker bash command line is very slow
  • Docker (Dockerfile): Share a directory from host to container
  • Using X11-forwarding for Docker containers
  • Error trying to install Ansible in Jenkins image
  • How to idiomatically access sensitive data when building a Docker image?
  • MySQL Docker container is not saving data to new image
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.