Coder Social home page Coder Social logo

Comments (6)

hexabyte23 avatar hexabyte23 commented on June 15, 2024 1

Sorry I do not succeed to make things run.
I choose https://github.com/kingkool68/generate-ssl-certs-for-local-development as exemple

That generate 3 files:
local.dev.crt
local.dev.key
local.devCA.pem

in code I write

  config.sslKeyPath = "./certs/local.dev.key";
  config.sslCertPath = "./certs/local.dev.crt";
  config.sslKeyPassPhrase = "MyPass";

at start I get this log
Successfully setup SSL configuration, HTTPS enabled (../rcs/thirdparty/HttpServer/src/httpServer/httpServer.cpp:95, void HttpServer::loadSslConfig())

but my brave browser complain:

Your connection is not private
Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_REVOKED

from httpserver.

addisonElliott avatar addisonElliott commented on June 15, 2024

Thanks.

Yes it's entirely possible. I'm happy to accept a PR if you're willing to do so. I would just generate a cert/private key and change the test code to utilize it. Maybe add a config option to enable/disable SSL.

from httpserver.

hexabyte23 avatar hexabyte23 commented on June 15, 2024

Ok, I try to do so. Could you first generate corresponding cert/key. I do not know how to do ?

from httpserver.

addisonElliott avatar addisonElliott commented on June 15, 2024

The best option is to google for a tutorial to do it. Search for generating a self-signed certificate

from httpserver.

addisonElliott avatar addisonElliott commented on June 15, 2024

The error message you received is a bit odd, but it is unsurprising that you get an error when using a self-signed certificate. Browsers will complain about self-signed certificates, although if you're testing a REST API, there is an option in Postman to allow self-signed certificates.

Try to do this using cURL or Postman and disable verifying certificates.

from httpserver.

hexabyte23 avatar hexabyte23 commented on June 15, 2024

I found the problem, on OS X self-signed certificates must be set to 'always trusted' with access.app. It's ok now

from httpserver.

Related Issues (8)

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.