Comments (6)
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.
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.
Ok, I try to do so. Could you first generate corresponding cert/key. I do not know how to do ?
from httpserver.
The best option is to google for a tutorial to do it. Search for generating a self-signed certificate
from httpserver.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpserver.