All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
479 views

Nginx configuration with NodeJS application on Ubuntu 20.04

I've been attempting to configure a backend NodeJS server (ExpressJS) to use with Nginx, but there have been some difficulties. I am currently running a DigitalOcean droplet with Ubuntu 20.04 ...
Jeremy Marino's user avatar
2 votes
1 answer
3k views

How to serve 2 react apps on nginx with same ip and port

I have two applications one is public and another one is admin, I want to serve these two apps on same port but it is not working, below is my configuration file: build folder for both apps is saved ...
Satish Lamak's user avatar
1 vote
0 answers
738 views

iOS saying ssl is invalid from letsencrypt

I’m using letsencrypt for a few sub domains one of which is chat.mydomain.com which is setup as an alias of the main domain in Apache because it uses a socket on specific port and doesn’t require a ...
MMMWeirdo's user avatar
0 votes
1 answer
748 views

Nginx fails to proxy to Node

I have a running Node app that is live and works fine on http and https. I setup Nginx and it is also running fine, tested with an sshtunnel, and it is getting a correct response from static files (...
jlanssie's user avatar
1 vote
1 answer
494 views

WSS Connectivity issue on production

I am using Angular8 as frontend and Nodejs as backend I have Configured WSS on production ,but connection with client not working properly, In one page connection is working but in another page ...
Satish Umagol's user avatar
0 votes
0 answers
1k views

SSL Error: How to use Nginx with Node.js App using Angular and websocket

I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when ...
user23316's user avatar
0 votes
0 answers
2k views

Client sends "FIN, ACK" instead of "Client Hello" | Connection closed during SSL handshake | Haproxy

I am trying to establish SSL connection between the .NET WebSocket Client and my server by calling "wss://domain.xyz". Haproxy is handling the SSL handshake and once that is done it connect ...
Panays's user avatar
  • 1
0 votes
1 answer
357 views

Is it possible to forward a port for one app only?

I have a Ubuntu server (18.04) which hosts some websites on Apache2, and also has a node app running. I want the node app to use SSL, but as it's not running as root it doesn't have permission to ...
DisgruntledGoat's user avatar
0 votes
1 answer
1k views

Cannot reach Node.js application over HTTPS

I have an node.js application that is running on port 3000. Infront of it i run an nginx reverse proxy. It works fine for port 80. I have tried to install an certificate with certbot. Now i have the ...
Ilijanovic's user avatar
1 vote
1 answer
514 views

Is this configuration for email is secure?

I am using nodemailer package with node.js to sending mails, and I am not sure about security. The host I've received is working only with this configuration (also with port 587): const transporter ...
Hunja's user avatar
  • 13
1 vote
1 answer
623 views

SSL on a Parse Server

I have a production mobile app running on Parse Server, hosted on DigitalOcean. This is my setup: Droplet no1: Parse Server and Dashboard Droplet no2: MongoDB And this is how the client connects to ...
Sotiris Kaniras's user avatar
1 vote
1 answer
2k views

How do I send secure cookies using node and a ProxyPass/ProxyPassReverse (Httpd/Amazon linux)

I am still pretty new but I am using an Amazon linux image and httpd to encrypt and decrypt SSL requests. Then I Proxy those messages to and from a NodeJS app running on port 3001. To do this I have ...
Jackie's user avatar
  • 171
1 vote
1 answer
2k views

My Web application gives CORS error after adding HTTPS using Let's Encrypt

This is my application : https://cfslpro.com/student_portal/ Front end is done by AngularJS and back end is done by Node.JS. Hosted in Apache server. ( Digital ocean Linux 16.04 ) You can try login , ...
Chanaka De Silva's user avatar
0 votes
0 answers
493 views

Node.JS rest API is not accessible from outside when I added SSL to my Linux server

This is a testing application i'm doing. https://cfslpro.com/student_portal/ username : chanu password : 123456 Before adding HTTPS , this login and everything worked. But now nothing is working. ...
Chanaka De Silva's user avatar
0 votes
2 answers
2k views

Nginx PM2 NodeJS reverse-proxy with SSL gives HTTP 504

Once upon a good time, I had a good config for three NodeJs, socket.io API running on the same Ubuntu 16.4 LTS VPS server with PM2 for process managing and Nginx for reverse proxy to three different ...
Malek Boubakri's user avatar
1 vote
0 answers
786 views

Apache SSL reverse proxy to a node server using websockets

Browsing to a root domain like https://sub.example.com and navigating through pages such as https://sub.example.com/page1 works. But only if I start my initial connection at the root. If I refresh ...
Steve Day's user avatar
0 votes
1 answer
166 views

Trouble configuring https with nginx on centos

I've got a node.js project running locally with http2 and https. Everything is running great, I generated a self signed cert and running the app serves everything up correctly. So now i'm trying to ...
Shan Robertson's user avatar
1 vote
0 answers
1k views

TypeError: SSLError(CertificateError("hostname 'abc.com' doesn't match 'def.com'",)

currently I am using a django backend which makes another post request to a expressjs backend. I have tested in development server and local machine, worked the request was made perfectly. So I push ...
Dora's user avatar
  • 341
1 vote
1 answer
3k views

Reverse proxy to localhost:xxxx only work for http and not for https

I have the following configuration that works for http: server { listen 80; listen [::]:80; server_name subdomain.domain.tech; location / { proxy_set_header X-Forwarded-...
Simoyw's user avatar
  • 121
1 vote
0 answers
234 views

ssl files: Nginx works but Nodejs https module does not?

I have a Node instance running on an EC2 instance. I just got my ssl certificate, private key and ca-bundle. so I put them in Nodejs like: var options = { key: fs.readFileSync("/path/to/private/key"...
J. C's user avatar
  • 13
1 vote
1 answer
893 views

Ssl reverse proxy from IIS to Node on same server. Ok to redirect internally over http?

I've got IIS exposed to the internet. On the same server I've got a NodeJS-app running (port 8080). I need to expose the node app over SSL to the internet. Is it possible to just switch from Https ->...
Gbrits's user avatar
  • 683
1 vote
0 answers
142 views

how to connect to mongo replica cluster which is ssl/tls enabled?

I have three mongo instance(Replicaset) with ssl/tls i.e I have 3 pair of key and cert. Which pair should be used in the Node js connection string ? Is there a way to add all 3 key&crt pair. I ...
Elang Kumaran's user avatar
3 votes
1 answer
6k views

SSL Permission Error: Node.js with HTTPS + Let's Encrypt SSL + Apache + Non-Root User

I have a Node.js server set up and I am trying to use HTTPS with my Let's Encrypt certificate on Apache. Here is the relevant code I have set up: var fs = require('fs'), https = require('https'), ...
peppy's user avatar
  • 73
0 votes
1 answer
1k views

Dovecot issuing LetsEncrypt certificate, openssl / node tls fail to verify

EDIT running openssl s_client -connect mail.mydomain.com:993 -showcerts -CAfile identtrustroot.pem works. So that suggests that node tls doesn't have any knowledge of that root, surely that can't be? ...
Joe Brailsford's user avatar
0 votes
1 answer
408 views

nginx: Node.js reverse proxy: problems with CNI of SSL certs on multiple domains

I'm a web developer, so be patient. I have 3 personal domains hosted on my VPS with nginx used as web server for proxying incoming https requests to 3 different Node.js sites. SSL certs work well on ...
Gabriele Romanato's user avatar
0 votes
1 answer
967 views

How to use NGINX as a proxy for https enabled service with client certificates

I am responsible for a node application that uses client certificates to authenticate. If I connect directly to this application using HTTPS from a browser, I'm prompted for my client certificate and ...
Anonymouslemming's user avatar
1 vote
0 answers
482 views

nginx - wierdest issue ever - some of the requests received are malformed

This issue is a mystery to me, and I will be extremely happy to find the solution. I'll provide the details of my environment I think are relevant, but if anything else is required please comment and ...
sahar's user avatar
  • 11
0 votes
1 answer
164 views

Is my PositiveSSL certificate chain configured properly?

I am using NodeJS to host an HTTPS Express server. My server configuration is as follows: var options = { key: fs.readFileSync('domain_com.key'), cert: fs.readFileSync('domain_com-bundle.crt'...
Dalton's user avatar
  • 11
2 votes
1 answer
1k views

Is it safe to pass my ssl key and cert files to socket.io? [closed]

I'm building a web chat using socket.io In order to communicate on port 3000 through https I need to pass my ssl key and cert files. Socket.io is an open source and I don't know how trustworthy it ...
Niv Apo's user avatar
  • 121
1 vote
1 answer
3k views

Socket.io with Sails.js/Node.js and NGINX on SSL: bad gateway

I just started venturing in NGINX and SSL. Using Ubuntu 16.04. I am running a Sails server on the standard 1337 port and just set up NGINX with SSL (using letsencrypt). Port 80 is redirected to 443 ...
noderman's user avatar
  • 131
1 vote
1 answer
2k views

CONNECT Method Allowed in HTTP Server Or HTTP Proxy Server Vulnerability

My setup details: OS : RHEL7 Webserver : Apache http server(SSL enabled) AppContainer : NodeJS Webserver connects to NodeJS via mod_proxy. I blocked the connect method in apache ...
Fred's user avatar
  • 11
2 votes
2 answers
7k views

SSL and ProxyPass

js server running on 8200 and I just got some SSL certificates for my domain. I want to be able to serve my page over HTTPS. So far my apache config file is like so File: /etc/apache2/sites-enabled/...
sova's user avatar
  • 121
0 votes
1 answer
343 views

Are nodejs apps with proxy that has SSL certificate still secure?

I wrote a node.js app to deal with processing forms on a business's website. These forms can contain sensitive information so I knew it needed an SSL certificate. Since I didn't want to serve my node ...
cmelone's user avatar
  • 33
0 votes
0 answers
368 views

Some (but not all) static content proxied by nginx loads successfully

I have nginx setup on my windows machine as a reverse proxy, listening on 443 over ssl. When I hit a particular url, it is supposed to serve a node js web application that I have running locally. It ...
Groppe's user avatar
  • 101
1 vote
1 answer
1k views

Reinstalling a godaddy certificate on node/express server?

Copied from here I'm looking at a server on behalf of a client and was wondering what the cert actually is and where it comes from in this example: require('https').createServer({ key: fs....
darkace's user avatar
  • 121
0 votes
1 answer
2k views

Lost my key file when I generated the csr

This is the first time for me dealing with ssl. I have created a csr file, but I lost the key file in this generation. The certificate was issued and I got all the crt files. Now I want to install it ...
SexyMF's user avatar
  • 209
1 vote
1 answer
8k views

Socket IO combined with apache ssl server

I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to ...
Crecket's user avatar
  • 121
0 votes
1 answer
865 views

What are Best Practices for setting a https node server via a reverse-proxy without using Apache or Nginx

I am trying to get a Node https server accessed through a node proxy. I bought certificates and got a standalone https server working fine. Initially there were some hiccups because of multiple certs ...
Sunny's user avatar
  • 381
18 votes
1 answer
22k views

Where is the private key after using certreq for CSR generation on Windows 10?

I tried to follow the website below for instructions on how to generate the CSR for my web server: http://www.entrust.net/knowledge-base/technote.cfm?tn=8649 However, it only generates the CSR. ...
Chong Lip Phang's user avatar
4 votes
1 answer
3k views

SSL - Apache and Node.js on the same Amazon EC2 instance

I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443. Currently, I just added a chat application to the website using Node.js + socket.io. ...
Danh Nguyen's user avatar
0 votes
1 answer
758 views

Nginx randomly refuses SSL connections

I am running the website https://telerandom.com (NodeJS server, port 9576) behind an Nginx reverse-proxy. It usually works, but on occasion, it begins to refuse all SSL connections from certain users (...
Jacob Brunson's user avatar
4 votes
1 answer
4k views

Node + PM2 - How to securely read SSL private key with non-root user?

I'm looking for a way to run node via PM2 whilst reading an SSL private-key that is placed in a secure directory. Details: Bitnami LEMP stack with Node permissions for /etc/ssl/private: drwx------ ...
jolian's user avatar
  • 107
0 votes
1 answer
2k views

Nodejs: server doesn't close TCP connections

Facing a problem in the production server running debian (7.0) with nodejs (v0.10.x) cluster where it doesn't close some TCP connections to the clients. This leads to connection drops when connection ...
FelikZ's user avatar
  • 355
0 votes
0 answers
492 views

Configuring NGINX with SSL and Node.js on CENTOS 6 in EC2

I'm trying to deploy a Node.js web-app on a Centos EC2 instance with an elastic IP. The SSL certificate is already setup and properly configured. I would like to allow only https connection to my app, ...
Cris69's user avatar
  • 111
0 votes
2 answers
3k views

nginx reverse proxy or squid forward proxy (transparent)?

I have to implement a proxy server in front of a running production server to route and secure the production-server. On the production server multiple node.js applications listening on different ...
Webx10's user avatar
  • 65
1 vote
2 answers
2k views

Proper config for Couchdb + SSL Ubuntu. Getting error: curl: (35) Unknown SSL protocol error in connection to 127.0.0.1:6984

I'm looking to use CouchDB with SSL and nodejs and I have just switched from self signed certificates (which were working for over a month) to a real SSL certificate and now I'm running into ...
paintedbicycle's user avatar
1 vote
1 answer
2k views

Node.js SSL: Invalid Certificate

I am trying to apply SSL layer to a node.js server. Following are the steps I have done Created all the ssl resources using this blog Followed the instructions given in here to start my node.js ...
Anand's user avatar
  • 123
2 votes
1 answer
3k views

Node.js with SSL/TLS protocol v1.2

I would like to use TLS 1.2 on my node.js server. I'm currently using openssl 1.0.0e. If I upgrade to openssl 1.0.1, do I need to rebuild node.js to upgrade to TLS 1.2? Are there configuration or ...
user avatar
1 vote
1 answer
638 views

Nginx + SSL + Rails + Juggernaut (Node.js) + Engineyard

I have two different applications on the same server. One of them is running on the 80 port (mydomain.com), another on the port 443 (sub.mydomain.com) and has wildcard certificate. The first ...
Aleksey Eliseev's user avatar