Using LetsEncrypt to install SSL for a Meteor project

This is pretty out of date now — take a look at https://medium.com/@grahamleslie/setting-up-meteor-meteor-up-letsencrypt-ssl-and-nginx-dddb3b5a4baa#.vq6hbhgdp

Meteor is pretty easy, and so is LetsEncrypt. This article will explain how to use LetsEncrypt to set up SSL encryption for your Meteor project.


# on your server
# first install letsencrypt
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
# next generate the required certificates
./letsencrypt-auto certonly --standalone
# navigate into the directory where your cert chain is located
cd /etc/letsencrypt/live/mysite.com
# combine your cert chain with your private key
touch ssl.pem
cat fullchain.pem privkey.pem > ssl.pem
# back to your machine
# open your project directory
cd project
# configure meteor up if you haven't already
# https://github.com/arunoda/meteor-up
# copy your pem file locally
scp user@mysite.com:/etc/letsencrypt/live/mysite.com/ssl.pem ssl.pem
# include the pem file in your mup.json file
nano mup.json
# paste in to the root level
"ssl": {
"pem": "ssl.pem"
}
# deploy
mup setup; mup deploy

and you should be good to go!

Eventually, you might want: Updating your LetsEncrypt certificate for a Meteor JS project