-
Notifications
You must be signed in to change notification settings - Fork 394
Setting up SSL with LetsEncrypt and MeteorUp
Luke Camilleri edited this page Oct 13, 2016
·
4 revisions
I Found this could be useful here originally written by @sys13 on this post
I went through using LetsEncrypt with my meteor-up installation. Here are the steps I used to do it:
- login to your prod box ssh [email protected]
- get the letsencrypt utility git clone https://github.com/letsencrypt/letsencrypt
- cd letsencrypt
- compile letsencrypt with the next few commands
./bootstrap/install-deps.sh
./bootstrap/dev/venv.sh
source venv/bin/activate
- run letsencrypt
letsencrypt certonly --standalone
- follow the letsencrypt prompts
- cd /etc
- package the output folder up
tar -cvvf letsencrypt_2015_12_4.tar letsencrypt
- copy the tar file back to your own box
scp [email protected]:/etc/letsencrypt_2015_12_4.tar ~/letsencrypt_2015_12_4.tar
- you want to backup this tar file for safe-keeping
- combine your cert chain with your private key
cat fullchain.pem privkey.pem > ssl.pm
- copy ssl.pm to your mup folder
cp ssl.pm YOUR_PROJECT/.prod/ssl.pm
- add this line to your mup.json
"ssl": {
"pem": "./ssl.pem"
},
- leave unprotected connections behind - from your app directory
meteor add force-ssl
- From your mup folder
run mup deploy
- add to your .gitignore file YOUR_MUP_DIR/ssl.pem
- Celebrate!