I’m developing a webapp that uses vite on the frontend for my local testing environment and also a separate API backend. I used mkcert to generate a local dev certificate and am using that one for the backend. My question is, for my frontend dev environment I also can use a certificate, as shown here in the vite config: My
Tag: ssl
Trying to run express node js as https server but it won’t run
I’m trying to get HTTPS working on express.js for node, and it won’t run. This is my server.js code. When I run it reports no errors but it just get stuck to nothing (I waited 30 minutes to see if it does something and nothing happened). Answer httpServer.listen(8080, ()=>{console.log(‘Server is running’)}); If the server successfully started, it should output “Server
Mosquitto and JavaScript Example not working (Firefox)
I would like to make a Websocket connection with TLS encryption to my mosquitto server. But I do not even get a simple example with the official mosquitto server running. In the network Log I can see these statements: Firefox (Mozilla Firefox for Linux Mint 89.0 (64-bit)) gives the error message Firefox can’t establish a connection to the server at
Node.js https server doesn’t work when I separate it in two files
I have this node.js https server that works when it is in one app.js file but when I split it in 2 files it doesn’t work anymore. I don’t know why.. This app.js works But when I separate it in 2 files app.js and certificate.js it doesn’t work anymore app.js certificate.js I’m getting this syntax error I also tried to