Comments (5)
Hi! Thank you for opening an issue!
https-localhost was designed for local use, on your PC, and not for production or for CI.
Anyway, if you could explain better the goal you want to reach with https-localhost on Jenkins I'll be glad to help you to find a workaround, also by adding some checks in the script.
First please note the issues #8 and #10. I'm planning to implement them this week.
Now the script acts this way: at install time the post install script generates certificates in ./certs.
Then, the script will do: nothing at install time (your first goal reached 🎉) and at first run generates certificates in ~/.https-localhost.
At this point, your problem at install time will be solved but is moved at run time. Furthermore, if you run https-localhost on linux you will be asked for sudo password also for the 443 and 80 ports (#11).
The workaround for the latter is easy: if you are able to change the port, using a higher number (like 4443 and 8080) the problem is solved. Check out the README.
For the first problem (certificates generation) I need further information:
- You are running under root on Jenkins? If not, is a problem to run the script under root?
- Do you need the certificates to be trusted (the green lock in the image)? Or you just need to serve your content over https, and doesn't matter if the certificate is valid or not?
from https-localhost.
Thanks for your reply. Yes, I think as long as an npm install
won't cause it to ask for a password my issue will be solved. I don't need to use the certificates for anything that I am doing with Jenkins. I just need to npm install and build the app. Other Jenkins users might need to use the certificates and I would assume that they are not running under root. I think it would be nice if the certificates were trusted so that it works without having to disable certificate checking.
from https-localhost.
I'm working on that, I think it will be ready for the end of the next week.
Is not possible to trust certificates without root permissions, but I'll add an option to use a custom certificate, so that the certificates generation will be skipped.
from https-localhost.
Should be solved with #13. Just upgrade your dependency to v4.1.0. Let me know!
from https-localhost.
Closed. Feel free to open again if you have any problem with the proposed solution.
from https-localhost.
Related Issues (20)
- Automated Certificate Management - Heroku HOT 1
- CORS Support
- Bug: Intermediate CA not added? Thanks for this module! HOT 2
- Unable to configure CORS HOT 2
- Running on Mac as a non-admin user HOT 3
- detected as the virus on windows HOT 1
- JAVA_HOME Set on Windows, Fails (access denied) HOT 2
- File exists: /usr/local/bin/serve HOT 5
- create a certificate for additional domains does not work HOT 4
- localhost didn’t send any data. HOT 4
- https server not working with socket.io HOT 2
- Request Aborted error from Android HOT 2
- How can I access localhost from mobile?
- Ability to set a custom domain in the cli
- Ability to add server headers HOT 4
- help with binary HOT 1
- Importing this library causes uncaught errors to be printed without stack traces HOT 4
- Mac M1 Chip Support HOT 1
- Error in the documentation
- localhost download file HOT 1
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 https-localhost.