Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor SSL connection

Tags:

ssl

meteor

I'm trying to connect to my Meteor project via SSL/TLS.

Therefore I did the following:

meteor add force-ssl

in the meteor folder. Then I start the programm with 'meteor'.

Everything is running fine on localhost, but if I want to connect to the server with giving the IP and Port over http, I get redirected to a https connection with the same IP and an 'Unable to connect message'.

Note: I created a certificate on my own an put it into the Meteor/server folder.

Does anyone know my mistake?

like image 463
user2471392 Avatar asked Jun 10 '13 15:06

user2471392


2 Answers

If you need to enable SSL support for your Meteor app deployed with Meteor Up. Now it has the support for SSL. You just need to tell where the SSL certificate and the key are.

If you are not familiar with the process of generating a SSL certificate, follow this guide.

Disclaimer: I'm the author of Meteor Up.

like image 136
Arunoda Susiripala Avatar answered Nov 17 '22 18:11

Arunoda Susiripala


You can't just put the certificate inside Meteor/server folder. You will need a web server to proxy the request and configure that server with your certificate (Docs also say that, search for force-ssl: http://docs.meteor.com/)

I recommend you to put an nginx instance as the proxy. Here an example of how to do it: http://www.digicert.com/ssl-certificate-installation-nginx.htm

like image 37
gabrielhpugliese Avatar answered Nov 17 '22 17:11

gabrielhpugliese