Code Monkey home page Code Monkey logo

Comments (6)

DylanPiercey avatar DylanPiercey commented on May 25, 2024

What version of node are you using?

from auto-sni.

hmbrg avatar hmbrg commented on May 25, 2024

Well, I was using v0.1.12, I'm a little bit ashamed right now... Updated to v4 and I get another error:

Subject does not start with '/'.
problems making Certificate Request
]
  killed: false,
  code: 1,
  signal: null,
  cmd: 'C:\\WINDOWS\\system32\\cmd.exe /s /c "openssl req -x509 -newkey rsa:2048 -keyout privkey.pem -out cert.pem -days 90 -nodes -subj \'/CN=localhost/emailAddress=EMAIL\' && cat privkey.pem cert.pem | tee -a chain.pem fullchain.pem"' }
Will fall back to self signed certificate.

This error gets repeated in an infinite loop.
The openssl command is working and openssl is installed.

from auto-sni.

DylanPiercey avatar DylanPiercey commented on May 25, 2024

I haven't tested this on Windows, could you try executing the failed command above without the first "/" before "CN="? If that successfully creates a self signed certificate then I should be able to issue a patch for Windows.

from auto-sni.

hmbrg avatar hmbrg commented on May 25, 2024

Ok I tested that, the problem seems to be that operators like && don't work in the Windows CMD.

from auto-sni.

DylanPiercey avatar DylanPiercey commented on May 25, 2024

@brighthero Thanks for looking into it. I'll see what I can do sometime this weekend, if you have time a PR would be great.

from auto-sni.

DylanPiercey avatar DylanPiercey commented on May 25, 2024

Going to close this for now since it seems dead in the water and I have opted to avoid supporting windows for now. PR's always welcome though.

from auto-sni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.